summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-02-08 11:18:35 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-02-08 11:18:35 +0100
commit8a76ed7ff638d71c6be600272bff562b08927d1c (patch)
treeb669344ba0ec9ece2d2f4c56fea45ffe9a921e70
parent8b83f38f76dced886d985633c8f254ffdf5c82c0 (diff)
downloaddotfiles-8a76ed7ff638d71c6be600272bff562b08927d1c.tar.gz
dotfiles-8a76ed7ff638d71c6be600272bff562b08927d1c.tar.xz
vimrc: enable syntax folding
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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