aboutsummaryrefslogtreecommitdiff
path: root/vim/autocmd.vim
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-02-17 11:08:19 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2016-02-17 11:08:19 +0100
commit601b1b45c2f58e98a697c7e74c36c1b35ae68ce4 (patch)
tree0effe22a05d5e773f9a87b188b71553127f6640a /vim/autocmd.vim
parent1293ab97d100af7536ca1d8312dfa745f34ccdfe (diff)
downloaddotfiles-601b1b45c2f58e98a697c7e74c36c1b35ae68ce4.tar.gz
dotfiles-601b1b45c2f58e98a697c7e74c36c1b35ae68ce4.zip
vim: automatically set Vagrantfile as ruby
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'vim/autocmd.vim')
-rw-r--r--vim/autocmd.vim1
1 files changed, 1 insertions, 0 deletions
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.