Set sw=2 if it's yaml/yml.

This commit is contained in:
Gea-Suan Lin
2017-02-03 23:34:56 +08:00
parent 33b38b52f5
commit 165293614e

View File

@@ -95,6 +95,8 @@ au BufNewFile,BufRead *.sls set shiftwidth=2
au BufNewFile,BufRead *.mk set noexpandtab au BufNewFile,BufRead *.mk set noexpandtab
au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead *.psgi setf perl
au BufNewFile,BufRead *.rb set shiftwidth=2 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 BufNewFile,BufRead Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
autocmd BufEnter * silent! lcd %:p:h autocmd BufEnter * silent! lcd %:p:h