From 4e30f17312eab3d1a547f90e5e96b8f52d473383 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 19 Sep 2017 05:34:00 +0200 Subject: 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. --- vimrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vimrc') 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 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 z :call RunCurrentSpecFile() nnoremap Z :call RunNearestSpec() +nnoremap 🕳 :call RunCurrentSpecFile() " Whitespace method chain -- cgit v1.2.3