Is it possible to navigate between two previously used tabs and/or splits?

I understand why buffers are best to use, and that I can use :b# to achieve what I want, but I have wondered if this was possible with tabs and/or splits.


Sometimes, if the buffer list gets long, I like to keep a few important ones in tabs. Can I jump to the last tab I was just previously in? (just like tmux last-window)


We all (hopefully!) use splits when there is enough room, I've don't really need more than 4 splits, but as I cannot find an answer anywhere else. Can I jump to the previous split? (just like tmux last-pane)

  • Welcome to Vi and Vim!
    – filbranden
    May 22, 2021 at 0:03
  • One think you might like to check out is the arglist - it's like the buffer list but you can add or remove files to have only the important ones - it's like a VIP buffer list. See :help arglist and the famous vimcasts for an demonstration of what I'm talking about: vimcasts.org/episodes/meet-the-arglist
    – mattb
    May 22, 2021 at 9:30

1 Answer 1


To go to the last visited tab do: g+Tab (see :help tab-page-commands)

To go to the last visited window split do:Ctrl+w Ctrl+p (see :help window-move-cursor)

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.