tpope / vim-rvm

rvm.vim: Switch Ruby versions from inside Vim
http://www.vim.org/scripts/script.php?script_id=4269
117 stars 5 forks source link

:Rvm with a buffer of a non-existent file generates error. #4

Closed amiorin closed 11 years ago

amiorin commented 11 years ago

CtrlpMRUFiles opens also non-existent files, but rvm (the cmd line tootl) doesn't like this. I've put a check to avoid this.

I've in my .vimrc

augroup rvm
  autocmd!
  autocmd BufEnter * Rvm
augroup END
tpope commented 11 years ago

Could you change it to check for the containing directory rather than the file itself?

amiorin commented 11 years ago

@tpope done.