aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/sh.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/sh.vim')
-rw-r--r--vim/after/ftplugin/sh.vim5
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')