From 33491571e20aa88b44e7426dcc5bbe319898c78b Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 21 Nov 2022 16:36:53 +0100 Subject: [PATCH] vim:autocmd: Add TODO and wip code for old_cursor The commented code seem to not work but I want to have the behaviour when entering the command line too. --- .config/vim/vimrc.d/80-autocommands.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/vim/vimrc.d/80-autocommands.vim b/.config/vim/vimrc.d/80-autocommands.vim index 676a0fd..66121f3 100644 --- a/.config/vim/vimrc.d/80-autocommands.vim +++ b/.config/vim/vimrc.d/80-autocommands.vim @@ -87,6 +87,11 @@ augroup highlight_old_cursor_pos au! au WinLeave * call HighlightOldCursorPos() au WinEnter * call ClearOldCursorPos() + + " TODO: WinLeave is not triggered when entering command line mode and + " CmdlineEnter is triggered **after** entering + " nnoremap : :call HighlightOldCursorPos(): + " au CmdlineLeave * call ClearOldCursorPos() augroup END " Do not mark input from stdin as modified