tags:

views:

128

answers:

2

I'm using foldmethod=marker and #{{{ #}}} markers in Python code.

After typing #{{{ vim automatically expands all folds below the cursor.

Is it possible to turn this off?

A: 

Try adding a match for the # {{{ like # {{{1 and then a # }}}1

Ayman
Folds get expanded as soon as I press { for the third time, so I can't do this.
JS_is_bad
+2  A: 

Try removing block from the "foldopen" option.

:set foldopen-=block

Or maybe the foldclose=all option...

:set foldclose=all
rq
foldclose=all did the trick. Thank you.
JS_is_bad