aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-16 17:38:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-16 17:38:26 +1200
commit128802d5b43d4dd5d622db359d7d41e30917d04b (patch)
tree04b142eff67709b60ae8ff972189fef21a84af29
parentMerge branch 'release/v6.15.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-128802d5b43d4dd5d622db359d7d41e30917d04b.tar.gz
dotfiles-128802d5b43d4dd5d622db359d7d41e30917d04b.zip
Merge branch 'release/v6.16.0'v6.16.0
* release/v6.16.0: Map double-tap comma back to old functionality
-rw-r--r--VERSION4
-rw-r--r--vim/vimrc10
2 files changed, 12 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index 093c9915..613a7c1f 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v6.15.0
-Sun, 16 Jun 2019 05:16:16 +0000
+tejr dotfiles v6.16.0
+Sun, 16 Jun 2019 05:38:25 +0000
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.