vim:aucmd:TODO: CursorMoved != SelectionChanged
There are operations that change the visual selection without moving the cursor (e.g. `viw` when on the last character). These do not trigger CursorMoved so the highlighting also does not change. TODO: <COMMIT>
This commit is contained in:
@@ -163,6 +163,8 @@ endfunction
|
||||
|
||||
augroup highlight_current
|
||||
au!
|
||||
" TODO: `viw` when on the last character of the word does not trigger
|
||||
" CursorMoved, but the selection changes
|
||||
au CursorMoved * if mode() == 'n' |
|
||||
\ call HighlightCurrentWord() |
|
||||
\ else |
|
||||
|
||||
Reference in New Issue
Block a user