I use mouse wheel scroll on two panes. In order to focus one pane, I must first click to focus it, then scroll.
Is there a way to focus upon mouse moving? This is also known as Focus follow mouse
in i3wm.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityIn GVim there are set mousefocus
and set scrollfocus
(only Windows GVim 8.1.2257 or later).
mousefocus
automatically activates window so it gets both mouse and keyboard input; scrollfocus
only allows scrolling window under mouse cursor without activating it.
For Neovim it seems to work out-of-the-box (as if set scrollfocus
).
:set scrollfocus
, but this needs a relative recent Vim 8.1.2257
Jun 11, 2020 at 11:32