From 22c579f13d33aa5b17d35b567cef7e15589e0389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Wed, 1 May 2013 22:30:23 +0900 Subject: [PATCH] Only reset message when motion limit is reached This prevents the annoying "Press ENTER or type command to continue" message when entering a buffer. --- plugin/mediummode.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/mediummode.vim b/plugin/mediummode.vim index 1b29e7e..fba8fb6 100644 --- a/plugin/mediummode.vim +++ b/plugin/mediummode.vim @@ -46,8 +46,10 @@ endfunction " Reset the motion count function! s:MediumModeResetCount() + if s:motion_count == g:mediummode_allowed_motions + echo '' + endif let s:motion_count = 0 - echo '' endfunction " Enable/disable functions