Browse Source

vim: set 2-space indent for CSS/YAML

Taddeus Kroes 8 years ago
parent
commit
e78bbe5c64
1 changed files with 3 additions and 0 deletions
  1. 3 0
      vimrc

+ 3 - 0
vimrc

@@ -167,6 +167,9 @@ highlight SpellBad guisp=#fcaf3e cterm=underline
 " Auto enable spellchecking for text-based files
 autocmd FileType tex,markdown setlocal spell nonu
 
+" 2 spaces for tabs in CSS/YAML
+autocmd FileType css,yaml set sw=2
+
 " -----------------------
 " Additional local config
 " -----------------------