diff options
-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") |