Following this good piece of advice, I have added these lines to my
augroup AutoSaveFolds autocmd! autocmd BufWinLeave * mkview autocmd BufWinEnter * silent loadview augroup END
It does work and my folds are saved. But I get this error now each time I open a unnamed buffer with;
or each time I navigate to help with
with the following message:
Error detected while processing BufWinEnter Auto commands for "*": E32: No file name
Why do I get this?
How to prevent it while still getting my folds automately saved?