summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-08-05 19:54:46 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-08-05 19:54:46 +0200
commit8e79c2b61d53435c78890fb14aa73ba94162a949 (patch)
treec23f5a2999bddffcaa414c3d61bab00e53d8d0ad
parent97462d3784027cf096ac46a0355ce0b6e90e61dd (diff)
downloadvim-8e79c2b61d53435c78890fb14aa73ba94162a949.zip
vim-8e79c2b61d53435c78890fb14aa73ba94162a949.tar.gz
vimrc: set special tab rules
-rw-r--r--vimrc13
1 files changed, 12 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 42c821d..9a82aec 100644
--- a/vimrc
+++ b/vimrc
@@ -34,7 +34,7 @@ set list
" set cursorline
" set cursorcolumn
set foldmethod=marker
-set expandtab tabstop=4 shiftwidth=4 softtabstop=4
+set tabstop=4 shiftwidth=4 softtabstop=4 expandtab
set backspace=indent,eol,start " allow backspacing over everything in insert mode
"set spell
@@ -97,6 +97,17 @@ if has("autocmd")
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Completeset
+ " Syntax of these languages is fussy over tabs Vs spaces
+ autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab
+ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
+
+ " Customisations based on house-style (arbitrary)
+ autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab
+ autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab
+
+ " Treat .rss files as XML
+ autocmd BufNewFile,BufRead *.rss setfiletype xml
+
"set tags+=~/share/ctags/efl.tags
endif " has("autocmd")