aboutsummaryrefslogtreecommitdiff
path: root/autocommands.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-09 10:30:55 +0800
committerGitHub <noreply@github.com>2020-10-09 10:30:55 +0800
commitd23ef8acd00536fe3423c0d7b43c7d3fa4d4b929 (patch)
tree50043eed301051d6a54b26280d0612d7483ca38f /autocommands.vim
parent9335b9816c454c5dc115b0310e41f6f1ffceb94b (diff)
only clear cmdline output when in normal mode
Diffstat (limited to 'autocommands.vim')
-rw-r--r--autocommands.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autocommands.vim b/autocommands.vim
index aea00de..096a549 100644
--- a/autocommands.vim
+++ b/autocommands.vim
@@ -67,7 +67,7 @@ augroup END
" Clear cmd line message
function! s:empty_message(timer)
- if mode() !=# 'c'
+ if mode() ==# 'n'
echo ''
endif
endfunction