From 26f8783e08efef27fc01e0df6465b8f94c8bf270 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Thu, 24 Sep 2015 12:06:05 +0200 Subject: [PATCH] Fix bug in C-L mapping The should be =, otherwise an error occurs when pressing C-L: E492: Not an editor command: nohlsearchas('diff')?'|diffupdate':'' --- plugin/sensible.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 4438723..e560ca1 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -30,7 +30,7 @@ set ttimeoutlen=100 set incsearch " Use to clear the highlighting of :set hlsearch. if maparg('', 'n') ==# '' - nnoremap :nohlsearchhas('diff')?'diffupdate':'' + nnoremap :nohlsearch=has('diff')?'diffupdate':'' endif set laststatus=2