aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-03-13 16:47:08 +0100
committerTeddy Wing2017-03-13 16:47:08 +0100
commit4c8ae42390953eb6cf5fb26264f0be43ccc98939 (patch)
tree5741d773272230882ad8f4e21125ceef43f7a63f
parent942aba85eb8a3305b86ead6ff9229737561c8fdc (diff)
downloaddotvim-4c8ae42390953eb6cf5fb26264f0be43ccc98939.tar.bz2
vimrc: Add `<leader>Z` mapping to run a single RSpec test
Using `<leader>z` works well, but now I want to be able to run a single test so I can iterate while writing it.
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index fd9e8a0..4762dc9 100644
--- a/vimrc
+++ b/vimrc
@@ -357,6 +357,9 @@
" 2017.02.21:
" * Change <leader>tf mapping to <leader>z.
"
+" 2017.03.13:
+" * Add <leader>Z mapping to run the nearest spec.
+"
" Pathogen
@@ -561,6 +564,7 @@ let g:slimv_swank_cmd = '! screen -d -m -t REPL-SBCL sbcl --load ~/.vim/bundle/s
" RSpec
nnoremap <leader>z :call RunCurrentSpecFile()<cr>
+nnoremap <leader>Z :call RunNearestSpec()<cr>