I have created a
ftplugin/html.vim file with a custom fold expression.
.vimrc file I have the following:
set foldmethod=syntax "all files use syntax fold method autocmd Syntax html set foldmethod=expr foldexpr=HTMLFolds() "html files use custom fold method
However when opening an
index.html and then another file, let's say
app.js and then toggling between the files with
The fold method is never kept and somehow reset to
Is there any way to keep the foldmethod for each buffer when navigating files in vim so the
foldmethod is kept always the one it should be?