Re: errors in vim folding commands
I've not looked into the VS.NET APIs yet, so I'm not sure if this is possible to do, but I often use the following commands:
zo Open one fold under the cursor. When a count is given, that
many folds deep will be opened. In Visual mode one level of
folds is opened for all lines in the selected area.zO Open all folds under the cursor recursively. Folds that don't
contain the cursor line are unchanged.
In Visual mode it opens all folds that are in the selected
area, also those that are only partly selected.zc Close one fold under the cursor. When a count is given, that
many folds deep are closed. In Visual mode one level of folds
is closed for all lines in the selected area.zC Close all folds under the cursor recursively. Folds that
don't contain the cursor line are unchanged.
In Visual mode it closes all folds that are in the selected
area, also those that are only partly selected.zm Fold more: Subtract one from 'foldlevel'. If 'foldlevel' was
already zero nothing happens.
'foldenable' will be set.zM Close all folds: set 'foldlevel' to 0.
zr Reduce folding: Add one to 'foldlevel'.
zR Open all folds. This sets 'foldlevel' to highest fold level.
I found that zR, zM work fine.
zc, zo seem to do a toggle, and not an always close and always open. they seem to do what za should (and does) do.
zO, zC, zr, zm do nothing it seems.
There are other folding commands, but these are the ones I use the most.
Can you please look into fixing this behavior? I wish this project was open source so I could contribute!