I'm using vim-rspec on a mac with macvim and iterm. I'm using this command to clear the iTerm screen and run the test in iTerm.
let g:rspec_command = "clear && rspec {spec}"
let g:rspec_runner = "os_x_iterm"
I wanted to know what will be the command to interrupt the current process like with Ctrl+c
. I've try ^\Quit && clear && rspec {spec}
but I get zsh: substitution failed
.
Any ideas?
rspec
process from within Vim. Am I correct?kill 'rspec_process' && clear && rspec {spec}
pkill
orkillall
to kill it: e.g.:!pkill rspec
. This will kill all rspec processes, but this is probably not an issue. This should also close the terminal window, as the process running inside of it is now finished. You can then restart it by using:call RunAllSpecs()
(or one of the other functions) again.