aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/vim.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-19 17:02:21 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-19 17:02:21 +1200
commitcc2cd38d2405dc50bdc7184516fd0b8e0e71ade0 (patch)
treea69f9172f593bb9b5172d93741d00ce38e5ae249 /vim/after/ftplugin/vim.vim
parentSet 'shiftwidth' to 4 for C Vim sources (diff)
downloaddotfiles-cc2cd38d2405dc50bdc7184516fd0b8e0e71ade0.tar.gz
dotfiles-cc2cd38d2405dc50bdc7184516fd0b8e0e71ade0.zip
Set filetype-appropriate 'foldlevel'
Diffstat (limited to 'vim/after/ftplugin/vim.vim')
-rw-r--r--vim/after/ftplugin/vim.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index 01f971b9..481af0ec 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -9,9 +9,10 @@ endif
let b:regex_escape_flavor = 'vim'
let b:undo_ftplugin .= '|unlet b:regex_escape_flavor'
-" Fold based on indent level
+" Fold based on indent level, but start with all folds open
setlocal foldmethod=indent
-let b:undo_ftplugin .= '|setlocal foldmethod<'
+setlocal foldlevel=99
+let b:undo_ftplugin .= '|setlocal foldmethod< foldlevel<'
" Use :help as 'keywordprg' if not already set; this is the default since Vim
" v8.1.1290