diff options
| author | jdhao <jdhao@hotmail.com> | 2020-10-09 01:07:15 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-10-09 01:07:15 +0800 |
| commit | 6749ecfac5621834e7a141b17b102155eac60156 (patch) | |
| tree | 28bf66de64b4e39a28a53711424a956ceb9517b9 /autocommands.vim | |
| parent | 9c7527c2e712f280d6d8770b334eaa4a0c54f720 (diff) | |
clear cmdline msg after some time
Diffstat (limited to 'autocommands.vim')
| -rw-r--r-- | autocommands.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autocommands.vim b/autocommands.vim index 7355538..aea00de 100644 --- a/autocommands.vim +++ b/autocommands.vim @@ -64,4 +64,16 @@ augroup highlight_yank autocmd! au TextYankPost * silent! lua vim.highlight.on_yank{higroup="YankColor", timeout=300} augroup END + +" Clear cmd line message +function! s:empty_message(timer) + if mode() !=# 'c' + echo '' + endif +endfunction + +augroup cmd_msg_cls + autocmd! + autocmd CmdlineLeave : call timer_start(5000, funcref('s:empty_message')) +augroup END "} |
