summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 67bd052..bd2318b 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=marker
+set foldmethod=syntax
"set smartindent
set scrolloff=3
set showcmd
@@ -229,6 +229,8 @@ 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 foldlevelstart=2 foldnestmax=2
+autocmd FileType php g:php_folding=2 g:php_htmlInStrings=1
autocmd FileType make setlocal noexpandtab
au FileType python set ts=4 sw=4 softtabstop=4 et