瀏覽代碼

vim: set 2-space indent for CSS/YAML

Taddeus Kroes 8 年之前
父節點
當前提交
e78bbe5c64
共有 1 個文件被更改,包括 3 次插入 和 0 次删除
  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
 " -----------------------