diff --git a/plugin/vim-ruby-conque.vim b/plugin/vim-ruby-conque.vim index 4d223e1..a1c3b5b 100644 --- a/plugin/vim-ruby-conque.vim +++ b/plugin/vim-ruby-conque.vim @@ -51,6 +51,14 @@ function! RunRspecCurrentFileConque() call RunSingleConque(g:ruby_conque_rspec_command . " " . bufname('%') . " --color") endfunction +function! RunCucumberCurrentLineConque() + call RunSingleConque("cucumber" . " " . bufname('%') . ":" . line('.')) +endfunction + +function! RunCucumberCurrentFileConque() + call RunSingleConque("cucumber" . " " . bufname('%')) +endfunction + function! RunRakeConque() call RunSingleConque("rake") endfunction @@ -58,4 +66,6 @@ endfunction nmap rr :call RunRubyCurrentFileConque() nmap ss :call RunRspecCurrentFileConque() nmap ll :call RunRspecCurrentLineConque() +nmap cl :call RunCucumberCurrentLineConque() +nmap cc :call RunCucumberCurrentFileConque() nmap RR :call RunRakeConque()