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.

| improve this answer | |
  • I had to double click on the tabs for neovim to switch. – Tim Stewart Sep 30 '19 at 18:45

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

| improve this answer | |

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.