aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorTeddy Wing2017-05-31 11:23:25 +0200
committerTeddy Wing2017-05-31 11:23:25 +0200
commitbfd37103f1f7b1c6a642f338dc44863228d184e3 (patch)
treeea418e5eaad2dd5955e6a806cf8e41168809ebc6 /projects
parentebfdf07c819f195c1eccfb8d3ae08d92a2e66ef8 (diff)
downloaddotvim-bfd37103f1f7b1c6a642f338dc44863228d184e3.tar.bz2
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.
Diffstat (limited to 'projects')
-rw-r--r--projects/stif.vim6
1 files changed, 6 insertions, 0 deletions
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