From 21a72dd228af1c4cffdf5331ef833d15e87456ca Mon Sep 17 00:00:00 2001 From: Fabio Gallonetto Date: Sat, 30 Mar 2013 13:36:03 +0100 Subject: [PATCH 1/2] Add tpope/vim-rvm to the plugin list tpope/bundler won't work without this plugin on a project that uses dvm when mvim is not launched from within the project's directory. Using the command :Rvm will source the right GEM_HOME so that :Bedit [gem] is able to look in the right place. --- vim/vundles.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/vundles.vim b/vim/vundles.vim index e29aa3cf..89aafe31 100644 --- a/vim/vundles.vim +++ b/vim/vundles.vim @@ -100,6 +100,6 @@ Bundle "itspriddle/vim-jquery.git" Bundle "slim-template/vim-slim.git" Bundle "airblade/vim-gitgutter.git" Bundle "bogado/file-line.git" - +Bundle "tpope/vim-rvm.git" "Filetype plugin indent on is required by vundle filetype plugin indent on From 2521763858432cec5a4ecbfa19786c5bf0234a18 Mon Sep 17 00:00:00 2001 From: Fabio Gallonetto Date: Sat, 30 Mar 2013 13:44:41 +0100 Subject: [PATCH 2/2] Add support for sourcing the right rvm env on bufenter This extra configuration plugin calls :Rvm on every BufEnter making sure that the right GEM_HOME and GEM_PATH are set. --- vim/plugin/settings/vim-rvm.vim | 1 + 1 file changed, 1 insertion(+) create mode 100644 vim/plugin/settings/vim-rvm.vim diff --git a/vim/plugin/settings/vim-rvm.vim b/vim/plugin/settings/vim-rvm.vim new file mode 100644 index 00000000..8c0a7679 --- /dev/null +++ b/vim/plugin/settings/vim-rvm.vim @@ -0,0 +1 @@ +autocmd BufEnter * Rvm