Closed astier closed 4 years ago
Hi, Thanks for the bug report!
I don't use folds a lot. Can you help me understand more about your setup? What foldmethod are you using? Anything else unique about your setup? Can you provide a sample document that I can fold some paragraphs with zfip? Also, how does vim behave if you temporarily remove vim-lastplace?
Thanks!
Minimal vimrc:
cal plug#begin('~/.local/share/nvim/plugins')
Plug 'farmergreg/vim-lastplace'
cal plug#end()
let g:lastplace_open_folds = 0
" this
" is
" a
" paragraph
" fold
" me
Foldmethod should then be manual. Without lastplace vim also opens the fold after reopening the file. But this is expected behavior.
Or do I misunderstand the purpose of lastplace_open_folds
?
It's behaving as expected. The g:lastplace_open_folds feature won't close any folds. It will only open them, when needed.
vim-lastplace doesn't have any mechanism to save the view state which would include folds. If you'd like vim to remember what was folded, you might need to use mkview / loadview, or find a plugin that would manage that for you.
Thanks for your bug report! I'll close it for now. Please feel free to re-open it if you have any further questions or thoughts.
Oh yeah sorry somehow. I missunderstood the docs. I was sleep deprived.
@astier happens to the best of us :)
Hi. Folds open after reopening a file even tho
let g:lastplace_open_folds = 0
is set.let g:lastplace_open_folds = 0
in your vimrczfip
I use
nvim v0.4.3