summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 50c685e..780972e 100644
--- a/.vimrc
+++ b/.vimrc
@@ -25,7 +25,7 @@ set nowrapscan " stop searching at EOF
set laststatus=2
set mouse=a
set nopaste
-set foldmethod=syntax
+set foldmethod=marker
"set smartindent
set scrolloff=3
set showcmd
@@ -230,6 +230,7 @@ autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
+autocmd FileType php set foldmethod=syntax
autocmd FileType php set foldlevelstart=2 foldnestmax=2
autocmd FileType php let g:php_folding=2
autocmd FileType php let g:php_htmlInStrings=1