-
-
Notifications
You must be signed in to change notification settings - Fork 773
Description
Take any python file with several consecutive classes, and zM
to fold the file completely. The display will alternate between folded class
lines and blank lines:
class A(object):...
class B(object):...
class C(object):...
# etc.
(All the class ...
lines are folds, not actual lines.)
Problem: It appears that the intervening blank lines are also folds.
When I go to a class
line and type zj
to go to the next fold, it takes me to the blank line. I have to hit zj
again to go to the next line. Thus, going to the next class is zjzj
instead of zj
.
Yes, I know I could just do jj
. :) But that misses the point: when I see these lines folded, I expect zj
will take me to the next fold, and it's jarring when that doesn't happen.
In fact, I just tried an experiment: I inserted several extra blank lines between classes. Every one of them gets hit by zj
.
More directly, :echo foldlevel('.')
gives 1
for any of these lines, but 0
for any of the import
lines at the top (which aren't folded).
Any chance we could have intervening blank lines set to foldlevel 0? :)