From 165293614e5fbd710f63b72b3f10506024d78c7b Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Fri, 3 Feb 2017 23:34:56 +0800 Subject: [PATCH] Set sw=2 if it's yaml/yml. --- .vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index 7aa3502..2264133 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -95,6 +95,8 @@ au BufNewFile,BufRead *.sls set shiftwidth=2 au BufNewFile,BufRead *.mk set noexpandtab au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead *.rb set shiftwidth=2 +au BufNewFile,BufRead *.yaml set shiftwidth=2 +au BufNewFile,BufRead *.yml set shiftwidth=2 au BufNewFile,BufRead Makefile set noexpandtab au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif autocmd BufEnter * silent! lcd %:p:h