How can I change the position / order of my current tab in Vim? For example, if I want to reposition my current tab to be the first tab?
I was looking for the same and after some posts I found a simpler way than a function:
:execute "tabmove" tabpagenr() # Move the tab to the right
:execute "tabmove" tabpagenr() - 2 # Move the tab to the left
The tabpagenr() returns the actual tab position, and tabmove uses indexes.
I mapped the right to Ctrl+L and the left to Ctrl+H:
map :execute "tabmove" tabpagenr() - 2
map :execute "tabmove" tabpagenr()