From 601b1b45c2f58e98a697c7e74c36c1b35ae68ce4 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 17 Feb 2016 11:08:19 +0100 Subject: vim: automatically set Vagrantfile as ruby MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- vim/autocmd.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/autocmd.vim b/vim/autocmd.vim index 2e66045..055e03d 100644 --- a/vim/autocmd.vim +++ b/vim/autocmd.vim @@ -13,6 +13,7 @@ autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 " Clean up trailing whitespaces on save. autocmd BufWritePre * :%s/\s\+$//e +au BufRead,BufNewFile Vagrantfile set filetype=ruby " If there is a .lvimrc, source it. Note that this works best by calling vim on " the root of your project. -- cgit v1.2.3