diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-08-05 19:54:46 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-08-05 19:54:46 +0200 |
commit | 8e79c2b61d53435c78890fb14aa73ba94162a949 (patch) | |
tree | c23f5a2999bddffcaa414c3d61bab00e53d8d0ad /vimrc | |
parent | 97462d3784027cf096ac46a0355ce0b6e90e61dd (diff) | |
download | vim-8e79c2b61d53435c78890fb14aa73ba94162a949.zip vim-8e79c2b61d53435c78890fb14aa73ba94162a949.tar.gz |
vimrc: set special tab rules
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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") |