From 8880f859e42533b507e478de8e1a135fc6cf3c1c Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 7 Nov 2021 00:08:05 -0400 Subject: .vimrc: Clear notification on cursor movement --- .vimrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index f6da3a4..4a0f9eb 100644 --- a/.vimrc +++ b/.vimrc @@ -212,10 +212,6 @@ nmap :nohl " Disable Ex Mode nnoremap Q -" Clear notification popups -nnoremap j :call popup_clear() -nnoremap k :call popup_clear() - " Split window mappings nmap :vsplit nmap :split @@ -355,6 +351,9 @@ augroup AutoCommands " Set file types. autocmd BufRead,BufNewFile *.nims set filetype=nim + " Clear notification on cursor movement. + autocmd CursorMoved * silent! call popup_clear() + " Automatically remove trailing white space on save. autocmd InsertLeave,BufWritePre * %s/\s\+$//e -- cgit v1.2.3