Skip to content
Shin Okada edited this page Oct 25, 2015 · 2 revisions

Open a new tab page.

:tabedit filename

Move into a new tab page

<C-w>T

Close a tab page contains only a sigle window.

:close

Close a current tab contains multiple windows.

:tabclose
Command Effect
:tabe[dit]{filename} Open {filename} in a new tab
T Move the current window into its own tab
:tabc[lose] Close the current tab page and all of its windows
:tabo[nly] Keep the active tab page, closing all others

Switching between tabs

Ex Command Normal Command Effect
:tabn[ext]{N} {N}gt Switch to tab page number {N}
:tabn[ext] gt Switch to the next tab page
:tabp[revious] gT Switch to the previous tab page

Rearranging tabs

:tabmove[N]  // 0 base
:tabmove    // move the current tab page to the end
Clone this wiki locally