Vim - E490: No fold found

I'm having problems folding some lines in a LaTeX. I use the set foldmarker=/*,*/ option in my .vimrc, and is working fine in the main file, but when I change the buffer, in the other file, I can't fold the lines.

This is the main file. And this is the other file.

set foldmarker=/*,*/
set foldnestmax=10
set nofoldenable
set foldlevel=2
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview

And that is what I have in my .vimrc to fold.

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like