If I navigate the first line of a folded function with h
,l
, etc it will open the fold. Navigating search matches with n
will also open a fold if there is a match inside the fold.
Can you configure folds to only open when you explicitly open them with z
commands?
foldopen=
there's bunch of keys that will "nicely" open the fold for you. For examplec-o
in insert mode when on the folded line.