aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2017-09-19 05:34:00 +0200
committerTeddy Wing2017-09-19 05:34:00 +0200
commit4e30f17312eab3d1a547f90e5e96b8f52d473383 (patch)
tree9dd73d6c0eae70461188b2b5560557627d2dadad /vimrc
parent5b5d9d0cecf3be595737b40ec5dba63b690f53c8 (diff)
downloaddotvim-4e30f17312eab3d1a547f90e5e96b8f52d473383.tar.bz2
vimrc: Add mapping to run RSpec file with unicode "hole" character
I'm now doing some work on a machine with an ISO keyboard layout, which gives me one extra key compared to my normal ANSI layout (really cool!). To take full advantage of this, I created a custom software keyboard layout that changes the extra key next to the left "Shift" key to a unicode U+1F573 "hole" character. Since I'm not actually going to be typing that character, it gives me an easy hook for remapping. This new mapping allows me to run a spec file with a single key press.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index d61defe..3646f81 100644
--- a/vimrc
+++ b/vimrc
@@ -379,6 +379,7 @@
" * Set 'backspace=2' because that doesn't get set by default on some
" Vims.
" * Add <leader>mk to save a Vim session file.
+" * Add mapping to run RSpec file with unicode U+1F573 "hole" character.
"
@@ -590,6 +591,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>
+nnoremap 🕳 :call RunCurrentSpecFile()<cr>
" Whitespace method chain