From b625144c96415e33ac69fa36a6139a2ac51d95aa Mon Sep 17 00:00:00 2001 From: haya14busa Date: Tue, 21 Jan 2014 06:28:04 +0900 Subject: [PATCH] Fix to use move highlight condition --- autoload/EasyMotion.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 03742ef..d6c2de3 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -341,8 +341,10 @@ function! EasyMotion#NextPrevious(visualmode, direction) " {{{ let re = s:previous.regexp let search_direction = (a:direction >= 1 ? 'b' : '') - call EasyMotion#highlight#attach_autocmd() - call EasyMotion#highlight#add_highlight(re,'EasyMotionMoveHL') + if g:EasyMotion_move_highlight + call EasyMotion#highlight#attach_autocmd() + call EasyMotion#highlight#add_highlight(re,'EasyMotionMoveHL') + endif if ! empty(a:visualmode) " FIXME: blink highlight