aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/php.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/php.vim')
-rw-r--r--vim/after/ftplugin/php.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim
index 7bb20f99..3b023f9e 100644
--- a/vim/after/ftplugin/php.vim
+++ b/vim/after/ftplugin/php.vim
@@ -8,9 +8,10 @@ setlocal comments=s1:/*,m:*,ex:*/,://,:#
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<'
" Use pman as 'keywordprg'
setlocal keywordprg=pman