From 0a14fb1a920e851ffb542d201212c18834db63e1 Mon Sep 17 00:00:00 2001 From: humphreylin Date: Thu, 17 Oct 2019 19:53:33 +0800 Subject: .vimrc: use different indents according to file types --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vimrc b/.vimrc index 0e88503..3639cb4 100644 --- a/.vimrc +++ b/.vimrc @@ -12,6 +12,8 @@ set shiftwidth=4 set expandtab set softtabstop=4 +autocmd FileType html setlocal shiftwidth=2 softtabstop=2 expandtab + set wrap "set nowrap "set wrapmargin=4 -- cgit v1.2.3