aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-02 11:17:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-02 11:17:12 +1200
commit3260ef7ee3cb8c107b810d4b7feb38ccc79bdfda (patch)
tree0f61b079d0069b37f7c27056187883bef4be9ebe
parentMerge branch 'release/v1.15.0' into develop (diff)
downloaddotfiles-3260ef7ee3cb8c107b810d4b7feb38ccc79bdfda.tar.gz
dotfiles-3260ef7ee3cb8c107b810d4b7feb38ccc79bdfda.zip
Correct <C-L> mapping
Exclude operator mode, and restore visual/select selection.
-rw-r--r--vim/vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 15d86763..5b47d98f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -165,7 +165,8 @@ if has('windows')
endif
" Stack normal/visual/select Ctrl-L to clear search highlight
-noremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
+nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
+vnoremap <silent> <C-L> :<C-U>nohlsearch<CR>gv<C-L>
" Stack insert Ctrl-C to undo the escaped insert operation
" Default to not-quite-correct vim-tiny-compatible map if no plugin