diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-19 17:02:21 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-19 17:02:21 +1200 |
commit | cc2cd38d2405dc50bdc7184516fd0b8e0e71ade0 (patch) | |
tree | a69f9172f593bb9b5172d93741d00ce38e5ae249 /vim/after/ftplugin/sh.vim | |
parent | Set 'shiftwidth' to 4 for C Vim sources (diff) | |
download | dotfiles-cc2cd38d2405dc50bdc7184516fd0b8e0e71ade0.tar.gz dotfiles-cc2cd38d2405dc50bdc7184516fd0b8e0e71ade0.zip |
Set filetype-appropriate 'foldlevel'
Diffstat (limited to 'vim/after/ftplugin/sh.vim')
-rw-r--r-- | vim/after/ftplugin/sh.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 2c68d83a..39b8d0d6 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -3,9 +3,10 @@ setlocal comments=:# setlocal formatoptions+=or let b:undo_ftplugin .= '|setlocal comments< formatoptions<' -" 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<' " If subtype is Bash, set 'keywordprg' to han(1df) if exists('b:is_bash') |