aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/c.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/c.vim')
-rw-r--r--vim/after/ftplugin/c.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim
index ea220e65..bc531a61 100644
--- a/vim/after/ftplugin/c.vim
+++ b/vim/after/ftplugin/c.vim
@@ -6,9 +6,10 @@ let b:undo_ftplugin .= '|setlocal commentstring< define< include<'
setlocal complete+=d
let b:undo_ftplugin .= '|setlocal complete<'
-" Fold based on indent level
+" Fold based on indent level, and start with all folds closed
setlocal foldmethod=indent
-let b:undo_ftplugin .= '|setlocal foldmethod<'
+setlocal foldlevel=0
+let b:undo_ftplugin .= '|setlocal foldmethod< foldlevel<'
" Include system headers on UNIX
if has('unix')