summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")