]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Disable 'hlsearch' with <C-L>.
authorSimon Ruderich <simon@ruderich.org>
Sat, 27 Nov 2010 13:47:46 +0000 (14:47 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 27 Nov 2010 13:47:46 +0000 (14:47 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 1dfc91956094d9af1abefc371e1a5e02c5cb44e5..322bc9ad25fb666e211573e4d1e2baa5960dfd9f 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -316,6 +316,10 @@ if has('gui_macvim') && has('eval')
     let macvim_skip_cmd_opt_movement = 1
 endif
 
+" In case 'hlsearch' is used disable it with <C-L>. Thanks to frogonwheels and
+" vimgor (bot) in #vim on Freenode (2010-03-30 05:58 CEST).
+noremap <silent> <C-L> :nohlsearch<CR><C-L>
+
 
 " SYNTAX SETTINGS