aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/awk.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/awk.vim')
-rw-r--r--vim/ftplugin/awk.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/ftplugin/awk.vim b/vim/ftplugin/awk.vim
index 310534ac..dbefa5cd 100644
--- a/vim/ftplugin/awk.vim
+++ b/vim/ftplugin/awk.vim
@@ -9,9 +9,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<'
" Specify ERE flavor for regex_escape.vim
let b:regex_escape_flavor = 'ere'