From 4123a957a1a2cd85767bf0a059501543b321c4fe Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 5 Jan 2020 17:05:53 +0000 Subject: [PATCH] vim/cpp: set foldlevel local to buffer --- vim/ftplugin/cpp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index a8c9a51..7984c68 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -80,7 +80,7 @@ function! InitialFoldLevel() let v:errmsg = "" keepjumps keeppatterns silent! 1,/}/s/^\(namespace\|class\) \+[^;]*$//n if v:errmsg == "" - let &foldlevel=str2nr(split(v:statusmsg)[0]) + let &l:foldlevel=str2nr(split(v:statusmsg)[0]) endif endf call InitialFoldLevel() -- 2.48.1