Is there a way to change tabs order in Vim (i.e. change the position of the tabs in the tab bar)? For example, let’s say my current tabs are in this order:
A | B | C | D
But I would like to switch the position of the tabs to something like:
A | C | B | D
How can I do that?
You can use
:tabmovefollowed by the tab number to move past. For example,:tabmove 3will make the current tab move past the 3rd.:tabmove 0moves to the beginning and:tabmove(without a number) moves to the end.Another way – though not orthodox – is to enable mouse via
:set mouse=aand drag-and-drop tabs around. It might look simpler for a start.