Closed kevinhwang91 closed 2 years ago
Look like should mock zR
and zM
behavior but keep foldlevel
value. Vim have v:count1 + zr
and v:count1 + zm
to change foldlevel, not bad to remap zR
and zM
.
Sorry to ask this but how should I remap zR
and zM
? I know very little vimscript and I don't know how to use v:count1 + zr
.
Please update code.
use require('ufo').openAllFolds()
and require('ufo').closeAllFolds()
instead. For now, I leave this issue.
Edit: doc has been updated
Thank you, it's working :+1:
Could this also be extended for za
and zo
?
here is the scenario
Step 1: open fold using any way other than zr
like za
or zo
Step 2: Insert enter and do stuff
step 3: Insert leave.
Result, just all folds have closed and i cant see what I just edided so that I can navigate
I think za
and zr
are important because they only open/close folds under the current cursor position instead of operating onl all folds of the same level in the whole window/buffer
Could this also be extended for
za
andzo
?here is the scenario Step 1: open fold using any way other than
zr
likeza
orzo
Step 2: Insert enter and do stuff step 3: Insert leave. Result, just all folds have closed and i cant see what I just edided so that I can navigateI think
za
andzr
are important because they only open/close folds under the current cursor position instead of operating onl all folds of the same level in the whole window/buffer
I think I misunderstand something. Open a new issue, please.
Hi man it was stable before but now when I use zM
using require('ufo').closeAllFolds()
the terminal freezes (crash) if the foldmethod=marker
, it works fine with buffers with foldmethod=manual
Hi man it was stable before but now when I use
zM
usingrequire('ufo').closeAllFolds()
the terminal freezes (crash) if thefoldmethod=marker
, it works fine with buffers withfoldmethod=manual
Thanks, update the code please
Neovim version (nvim -v | head -n1)
NVIM v0.7.0
Operating system/version
ArchLinux
How to reproduce the issue
zR
,foldlevel
become 2and enter normal mode, folds have applied, level3 is closed automatically.
Expected behavior
level 3 fold keeps open.
Actual behavior