-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
are fold status get saved? #115
Comments
okay i learned that mkview and loadview needs to be used. -- remember folds
vim.cmd [[
augroup remember_folds
autocmd!
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent! loadview
augroup END
]] |
No bad, some save session plugins also solve this issue. |
In some cases, the snippet above would change the cwd when you enter a buffer, and the following command can solve this problem:
|
|
Neovim version (nvim -v | head -n1)
0.9
Operating system/version
macOS
How to reproduce the issue
when i open a file, fold some lines, closing the file and reopen it (or a :e) i thought the folds stays closed.
Expected behavior
after saving a file and reloading still have the same fold and unfold state
Actual behavior
everything is unfolded again
The text was updated successfully, but these errors were encountered: