Use sw=2 when editing *.rb.

This commit is contained in:
Gea-Suan Lin
2016-07-18 17:08:02 +08:00
parent ce85b7218c
commit 4bec6f0c95

View File

@@ -93,6 +93,7 @@ au BufNewFile,BufRead *.sls set filetype=yaml
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 Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
autocmd BufEnter * silent! lcd %:p:h