From 8e79c2b61d53435c78890fb14aa73ba94162a949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 5 Aug 2012 19:54:46 +0200 Subject: vimrc: set special tab rules --- vimrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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") -- cgit v1.1-2-g2b99