From 594ef5878444fe7120865091f3a9fdeed6d47524 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Tue, 8 Nov 2016 13:40:51 -0800 Subject: [PATCH] Don't move cursor at all --- plugin/hightlight.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/hightlight.vim b/plugin/hightlight.vim index 1cd5449..9d09ee2 100644 --- a/plugin/hightlight.vim +++ b/plugin/hightlight.vim @@ -90,6 +90,7 @@ endfunction function! s:CountLastSeen() if len(@/) > 0 let pos = getpos('.') + let pos[2] = pos[2] - 1 exe ' %s/' . s:last_seen . '//gne' call setpos('.', pos) endif