How do I fix vim to properly indent folds containing Python comment lines?
问题 I set vim's foldmethod to indent which works very well when writing Python except when I have a comment line. For example, if I have this bit of code: def myFunction(): # here is my comment myString = "hello" myInt = 2 If I have my cursor on the comment line and type "za" I get get an error saying "E490: No fold found." If I have the cursor on the line beginning with "myString = " I will geta fold like this: def myFunction(): # here is my comment +--- 2 lines: myString = "hello" -------------