I often use my code completely folded just to grasp the main structure. When fixing some error I go directly to the line with nG
where n
is the line number (sometimes I also use :n
, or even nvim +n file
), and, as expected I get into a fold, then, I type zO
to completely open the fold where the cursor is. Is possible to after executing a jump, if the line landed is folded it auto executes zO
?
Using neovim 0.10.4
:help folding
?