diff options
author | tdro <tdro@users.noreply.github.com> | 2021-11-07 00:08:05 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2021-11-07 00:41:14 -0400 |
commit | 8880f859e42533b507e478de8e1a135fc6cf3c1c (patch) | |
tree | 46f54c87d8e54119c0cc483171f6508d99a61a58 /.vimrc | |
parent | 44ff24447e27f8101547f5d071794766aaa25bba (diff) | |
download | dotfiles-8880f859e42533b507e478de8e1a135fc6cf3c1c.tar.gz dotfiles-8880f859e42533b507e478de8e1a135fc6cf3c1c.tar.bz2 dotfiles-8880f859e42533b507e478de8e1a135fc6cf3c1c.zip |
.vimrc: Clear notification on cursor movement
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -212,10 +212,6 @@ nmap <Esc><Esc> :nohl<cr> " Disable Ex Mode nnoremap Q <Nop> -" Clear notification popups -nnoremap j :call popup_clear()<cr><Down> -nnoremap k :call popup_clear()<cr><Up> - " Split window mappings nmap <Bslash> :vsplit<cr> nmap <C-Bslash> :split<cr> @@ -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 |