diff options
author | Teddy Wing | 2017-09-19 05:34:00 +0200 |
---|---|---|
committer | Teddy Wing | 2017-09-19 05:34:00 +0200 |
commit | 4e30f17312eab3d1a547f90e5e96b8f52d473383 (patch) | |
tree | 9dd73d6c0eae70461188b2b5560557627d2dadad | |
parent | 5b5d9d0cecf3be595737b40ec5dba63b690f53c8 (diff) | |
download | dotvim-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.
-rw-r--r-- | vimrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |