I have two opening buffers and one has foldenable and foldmethod=indent, other has nofoldenable and foldmethod=syntax.

I need that when I move between buffers, each buffer has it own fold settings and for example a buffer keeps folded even I move to other buffer that has nofoldenable

Can we achieve this?

Vim 8.1 / Archlinux


We can achieve this by set setlocal for python file and nofoldenable in global in .vimrc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.