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). Aug 30, 2016 at 12:00
  • Sadly, this interferes with copying and pasting. May 14, 2022 at 5:17

2 Answers 2


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. Sep 30, 2019 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, 2021 at 13:35
  • @xulfir lets just keep the answers to answering rather than recruiting or converting new acolytes.
    – airtonix
    Feb 28, 2023 at 1:58

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 and acknowledge you have read our privacy policy.

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