From a95dc71f99c0093f72cdc6ecd459be60ffd8670e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 6 Jan 2013 13:33:45 -0500 Subject: [PATCH] Map to clear search highlighting normally redraws the screen, so turning off search highlighting is a natural addition. But some people like it for l, so don't override it if it's already been mapped. Note that hlsearch is currently left off by default. --- plugin/sensible.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 48898cf..74b4648 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -23,6 +23,9 @@ set ttimeoutlen=50 set incsearch set smartcase +if maparg('', 'n') ==# '' + nnoremap :nohls +endif set laststatus=2 set ruler