Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion plugin/vim-ruby-conque.vim
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ function! GetRubyConqueRspecCommand()
endif
endfunction

" Lets you choose the ruby interpreter
"
" let g:ruby_conque_ruby='rvm-auto-ruby'
"
function! GetRubyConqueRubyCommand()
if exists('g:ruby_conque_ruby')
return g:ruby_conque_ruby
else
return 'ruby'
endif
endfunction


" Always deletes any existing instance prior to runing the next one
function! RunSingleConque(command)

Expand All @@ -57,7 +70,7 @@ function! CloseSingleConque()
endfunction

function! RunRubyCurrentFileConque()
call RunSingleConque("ruby " . bufname('%'))
call RunSingleConque(GetRubyConqueRubyCommand() . " " . bufname('%'))
endfunction

function! RunRspecCurrentLineConque()
Expand Down