diff options
author | Teddy Wing | 2017-09-22 03:06:46 +0200 |
---|---|---|
committer | Teddy Wing | 2017-09-22 03:06:46 +0200 |
commit | 895ef2b9ee8a7128b385dab9580f39efc29bae1b (patch) | |
tree | e7fa0c5f2895a595a2cd7ad739687c8a3758aa87 /ftplugin | |
parent | 4e30f17312eab3d1a547f90e5e96b8f52d473383 (diff) | |
download | dotvim-895ef2b9ee8a7128b385dab9580f39efc29bae1b.tar.bz2 |
ftplugin/ruby.vim: Add command to stop Spring
I love Spring, it makes it so much nicer to run tests in Rails apps.
That's why I set 'vim-rspec' to use it. However, sometimes it gets
confused and doesn't load the latest code, and a load error occurs.
Recently I started a new project and those errors occur every few times
I run the tests. It's absolutely unbearable. To make life a tiny bit
easier, make a command that allows us to stop Spring from Vim, to avoid
having to <C-z> and type the command by hand.
You can tell I was frustrated when I decided to make this command.
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/ruby.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index acc6d35..fe7315d 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -16,3 +16,7 @@ nnoremap <buffer> O O " Debugging nnoremap <buffer> Zd obyebug<Esc> nnoremap <buffer> ZD Obyebug<Esc> + + +" Spring +command! -buffer FuckSpring :!bundle exec spring stop |