diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 17:35:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 17:35:18 +1200 |
commit | 70cd189030c85c0802e5a6169bbcbb2e18514226 (patch) | |
tree | b63079f1123031d1afa89702abb6872a4ebf489b /vim/vimrc | |
parent | Merge branch 'release/v6.15.0' into develop (diff) | |
download | dotfiles-70cd189030c85c0802e5a6169bbcbb2e18514226.tar.gz dotfiles-70cd189030c85c0802e5a6169bbcbb2e18514226.zip |
Map double-tap comma back to old functionality
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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. |