From 22e58f0ced1cb65a7138dc116e1c969763e5a495 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Sun, 15 Dec 2013 22:02:47 -0600 Subject: [PATCH] Added ,rs ,rl ,ss ,sl commands for running specs in iTerm --- README.md | 2 ++ vim/settings/iterm-rspec.vim | 4 ++++ vim/vundles.vim | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 vim/settings/iterm-rspec.vim diff --git a/README.md b/README.md index 5da810f..37a43d3 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,8 @@ of plugins above to learn more. * vim-ruby-refactoring - try `,rem`, `,rel` to extract methods or let statements * `,vv` and `,cc` to switch between view and controller - these are maps to :Rcontroller and :Rview. Explore the :R family of commands for more fun from rails.vim! + * `,rs` and `,rl` to run rspec or a spec line in iTerm (check iTerm window for results) + * `,ss` and `,sl` for the same using `spring rspec` which makes your Rails specs faster by caching the Rails env (must have spring gem installed) #### Surround.vim customizations diff --git a/vim/settings/iterm-rspec.vim b/vim/settings/iterm-rspec.vim new file mode 100644 index 0000000..4f6e728 --- /dev/null +++ b/vim/settings/iterm-rspec.vim @@ -0,0 +1,4 @@ +nnoremap ,rs :RunItermSpec +nnoremap ,rl :RunItermSpecLine +nnoremap ,ss :RunItermSpringSpec +nnoremap ,sl :RunItermSpringSpecLine diff --git a/vim/vundles.vim b/vim/vundles.vim index 96dd284..ac2416c 100644 --- a/vim/vundles.vim +++ b/vim/vundles.vim @@ -20,12 +20,13 @@ Bundle "gmarik/vundle" " Ruby, Rails, Rake... Bundle "ecomba/vim-ruby-refactoring" -Bundle "skwp/vim-spec-finder" Bundle "tpope/vim-rails.git" Bundle "tpope/vim-rake.git" Bundle "tpope/vim-rvm.git" Bundle "vim-ruby/vim-ruby.git" Bundle "Keithbsmiley/rspec.vim" +Bundle "skwp/vim-iterm-rspec" +Bundle "skwp/vim-spec-finder" Bundle "ck3g/vim-change-hash-syntax"