path: root/vim
diff options
authorTom Ryder <tom@sanctum.geek.nz>2019-11-28 09:43:30 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-11-28 09:43:30 +1300
commitf8fe120fbf9c3205a344ea6b8ff5b40ac3abf8d4 (patch)
treec78b16c827b7dadd2f0411d9ad8b38ced2482add /vim
parentCompletely rewrite an awkward comment block (diff)
Restore 'foldlevel' to 99 for C filetype
Commit cc2cd38 set the default 'foldlevel' folding threshold to 0 for the "c" filetype, as an experiment. I've decided I don't like this and am turning it back up to 99.
Diffstat (limited to 'vim')
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim
index bc531a61..f082ca18 100644
--- a/vim/after/ftplugin/c.vim
+++ b/vim/after/ftplugin/c.vim
@@ -6,9 +6,9 @@ let b:undo_ftplugin .= '|setlocal commentstring< define< include<'
setlocal complete+=d
let b:undo_ftplugin .= '|setlocal complete<'
-" Fold based on indent level, and start with all folds closed
+" Fold based on indent level, but start with all folds open
setlocal foldmethod=indent
-setlocal foldlevel=0
+setlocal foldlevel=99
let b:undo_ftplugin .= '|setlocal foldmethod< foldlevel<'
" Include system headers on UNIX