Permalink
Browse files

Organize vim's whitespace settings

  • Loading branch information...
1 parent 8cfd0bf commit 3120ae0e1612f43e697d4831939f95a4346a2666 @fuadsaud committed Dec 23, 2013
Showing with 4 additions and 8 deletions.
  1. +4 −8 vim/rc.vim
View
@@ -62,20 +62,16 @@ filetype plugin indent on
syntax on
if has("autocmd")
- " Enable file type detection
-
- " 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 yaml setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab
- autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab
+ autocmd FileType css setlocal ts=4 sts=4 sw=4 expandtab
+ autocmd FileType scss.css setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType java setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType cpp setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType c setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab
+ autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab
autocmd BufNewFile,BufRead *.rss setfiletype xml

0 comments on commit 3120ae0

Please sign in to comment.