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.
This commit is contained in:
@@ -87,6 +87,11 @@ augroup highlight_old_cursor_pos
|
|||||||
au!
|
au!
|
||||||
au WinLeave * call HighlightOldCursorPos()
|
au WinLeave * call HighlightOldCursorPos()
|
||||||
au WinEnter * call ClearOldCursorPos()
|
au WinEnter * call ClearOldCursorPos()
|
||||||
|
|
||||||
|
" TODO: WinLeave is not triggered when entering command line mode and
|
||||||
|
" CmdlineEnter is triggered **after** entering
|
||||||
|
" nnoremap : :call HighlightOldCursorPos()<CR>:
|
||||||
|
" au CmdlineLeave * call ClearOldCursorPos()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" Do not mark input from stdin as modified
|
" Do not mark input from stdin as modified
|
||||||
|
|||||||
Reference in New Issue
Block a user