Now I navigate from one tab to another tab in Vim using the gt command, but it's little frustrating for me, because so far I've worked with editors that support mouse navigation.

Is there a way that I can control Vim with mouse?

  • Control+PageDown & PageUp do the same as gt and gT btw (also works from insert mode). – Martin Tournoij Aug 30 '16 at 12:00

Give this a try:

:set mouse=a

I think you'll find the keys a bit faster though, if you take the time to learn them.

  • I had to double click on the tabs for neovim to switch. – Tim Stewart Sep 30 '19 at 18:45
  • In general I agree that the key commands are faster, but there are some operations that the mouse is better for: dragging to resize a window to the size you want is much easier than guessing that you want that window about 20 units larger, and typing 20 ctrl-w shift-+ – Z4-tier Apr 20 at 13:35

If you are specifically interested in movement in Vim, then you can add set mouse=a to your ~/.vimrc file.

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.