From 70cd189030c85c0802e5a6169bbcbb2e18514226 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 16 Jun 2019 17:35:18 +1200 Subject: Map double-tap comma back to old functionality --- vim/vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 9eaa699b..347299e0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1237,6 +1237,16 @@ nmap ] (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. -- cgit v1.2.3