From 895ef2b9ee8a7128b385dab9580f39efc29bae1b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 22 Sep 2017 03:06:46 +0200 Subject: 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 and type the command by hand. You can tell I was frustrated when I decided to make this command. --- ftplugin/ruby.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftplugin') 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 O O " Debugging nnoremap Zd obyebug nnoremap ZD Obyebug + + +" Spring +command! -buffer FuckSpring :!bundle exec spring stop -- cgit v1.2.3