-
-
Save zph/4343125 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Run the current file in a ConqueTerm, great for ruby tests | |
let g:ConqueTerm_InsertOnEnter = 0 | |
let g:ConqueTerm_CWInsert = 1 | |
nmap <silent> <Leader>r :call RunRubyCurrentFileConque()<CR> | |
nmap <silent> <Leader>R :call RunRakeConque()<CR> | |
nmap <silent> <Leader>c :execute 'ConqueTermSplit script/console'<CR> | |
nmap <silent> <Leader>i :execute 'ConqueTermSplit pry'<CR> | |
nmap <silent> <Leader>b :execute 'ConqueTermSplit /bin/bash --login'<CR> | |
nmap <silent> <Leader>S :call RunRspecCurrentFileConque()<CR> | |
" Run the current file as a ruby file, great for running unit tests | |
function RunRubyCurrentFileConque() | |
execute "ConqueTermSplit ruby" bufname('%') | |
endfunction | |
function RunRspecCurrentFileConque() | |
execute "ConqueTermSplit rspec" bufname('%') " --color --format doc" | |
endfunction | |
function RunRakeConque() | |
execute "ConqueTermSplit rake" | |
endfunction | |
" Send the current selection to conqueterm. This lets you easily veal | |
" Ruby code in an irb console. Note: you must have only one ConqueTerm | |
" console open and running irb for this to work. Somehow it gets confused | |
" when multiple consoles are open. If you know how to fix this let me know :) | |
let g:ConqueTerm_SendVisKey = '<Leader>e' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment