aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-16 17:35:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-16 17:35:18 +1200
commit70cd189030c85c0802e5a6169bbcbb2e18514226 (patch)
treeb63079f1123031d1afa89702abb6872a4ebf489b
parentMerge branch 'release/v6.15.0' into develop (diff)
downloaddotfiles-70cd189030c85c0802e5a6169bbcbb2e18514226.tar.gz
dotfiles-70cd189030c85c0802e5a6169bbcbb2e18514226.zip
Map double-tap comma back to old functionality
-rw-r--r--vim/vimrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 9eaa699b..347299e0 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1237,6 +1237,16 @@ nmap ]<Space> <Plug>(PutBlankLinesBelow)
let mapleader = '\'
let maplocalleader = ','
+
+" If the local leader is a comma, map double-tap comma to its original
+" function in the relevant modes so that I can still use it quickly without
+" relying on mapping 'timeout'.
+"
+if maplocalleader ==# ','
+ noremap ,, ,
+ sunmap ,,
+endif
+
" Let's start with some simple ones; these ones all just toggle a boolean
" option, and print its new value. They're dirt simple to specify, and don't
" require any plugins.