aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:46:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:46:18 +1200
commitc4d7309460483606505ef557b874d622303b17aa (patch)
tree8b1801f593731cb896c6f79622344aee851bd56a /vim/vimrc
parentReorder mappings (diff)
downloaddotfiles-c4d7309460483606505ef557b874d622303b17aa.tar.gz
dotfiles-c4d7309460483606505ef557b874d622303b17aa.zip
Simplify Ctrl-L Vim map
It can be used in select mode, too.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc7
1 files changed, 2 insertions, 5 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2ba4fdff..91cff473 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -189,11 +189,8 @@ if v:version >= 700
xnoremap <silent> & :&&<CR>
endif
-" Stack normal/visual Ctrl-L to clear search highlight before redraw
-nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
-if v:version >= 700
- xnoremap <silent> <C-L> :<C-U>nohlsearch<CR>gv<C-L>
-endif
+" Stack normal/visual/select Ctrl-L to clear search highlight
+noremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
" Stack insert Ctrl-C to undo the escaped insert operation
inoremap <C-C> <C-C>u