How do I switch between tab pages?
Answer
gt and gT
Explanation
The gt command moves to the next tab page and gT moves to the previous one. Tab pages are the outermost container in Vim's window hierarchy.
How it works
gtgoes to the next tabgTgoes to the previous tab{count}gtgoes to tab number N (1-indexed)
Example
With three tabs open:
gtmoves from tab 1 to tab 2gtagain moves to tab 3gTmoves back to tab 21gtjumps to tab 1
Tips
:tabnextand:tabprevare the Ex command equivalents:tabslists all tab pages and their windows:tabfirstand:tablastjump to the extremes- Map
<leader>1through<leader>9for quick tab access <C-PageDown>and<C-PageUp>also switch tabs in some terminals