From 4bec6f0c95e97dbd8fbf87f06f5bdd11d092f583 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 18 Jul 2016 17:08:02 +0800 Subject: [PATCH] Use sw=2 when editing *.rb. --- .vim/vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.vim/vimrc b/.vim/vimrc index 199cabd..c9550e9 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -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