0

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
    Sounds like an XY problem. What are you actually trying to achieve? – jamessan May 2 '16 at 1:55
  • @jamessan I'm trying to resolve github.com/vim/vim/issues/776 (I'm reporter of that issue). I got to matchparen.vim using CursorMoved, CursorMovedI, WinEnter, TextChanged and TextChangedI for doing it's job. A simple fix would be adding something like WindowScrolled 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? – graywolf May 2 '16 at 8:21
2

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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.