From bfd37103f1f7b1c6a642f338dc44863228d184e3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 31 May 2017 11:23:25 +0200 Subject: Add projects/stif.vim A project-specific config for the STIF app. Set a custom RSpec command for rspec.vim that runs the Spring preloader instead of calling RSpec directly. This allows us to eliminate the slow-as-molasses Rails startup time when iterating on code with tests. --- projects/stif.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 projects/stif.vim (limited to 'projects') diff --git a/projects/stif.vim b/projects/stif.vim new file mode 100644 index 0000000..6428e53 --- /dev/null +++ b/projects/stif.vim @@ -0,0 +1,6 @@ +augroup stif + autocmd! + + autocmd BufRead,BufEnter $VIM_PROJECT_PATH_STIF/* + \ let g:rspec_command = "!bundle exec spring rspec {spec}" +augroup END -- cgit v1.2.3