I'm trying out code folding in vim but noticed it doesn't seem to mirror across pane splits when using scrollbind
to achieve a "2-up" view of a long text/code file with relatively narrow lines (set up as per this guidance).
Is it possible to ensure a fold created in one pane is also created on the other?
I'm just getting familiar with the commands, but it'd probably be z+c (close a fold at the cursor, i.e. 'fold up') and z+o (open a fold at the cursor, i.e. 'unfold')
It strikes me that one use of code folding would be to let one of the split views be an "outline view" (fully folded up, and just used to give an indication of how far through the file the other pane is), but it'd be nice if I could get them fully synced for scrollbind
.