Is there a autocmd for scrolling a window without moving a cursor, the one that occurs for CTRL+E/Y? Is there some autocmd that is triggered for that? I googled but found nothing.
1 Answer
If you have a look at :h autocommand-events
you will see all events triggered.
There is no autocommand that I see for scrolling without cursor moving.
If you want to add extra functionalities to <C-e>
/<C-y>
you can always remap them:
nnoremap <C-E> :echo 'a'<CR> | norm <C-E>
matchparen.vim
usingCursorMoved
,CursorMovedI
,WinEnter
,TextChanged
andTextChangedI
for doing it's job. A simple fix would be adding something likeWindowScrolled
there. But it seems that it doesn't exist. But ofc it's possible that this is XY problem. Any idea how to do this in some different way?