How do I move an existing window to a new tab?

Is there a way to take an existing window (split) and put it into a new tab?


Solution 1:

As well as the previously suggested :tabedit approach, a quicker way of doing it is (in normal mode) to hit Ctrl-W Shift-T. Ctrl-W is the general prefix for a wide variety of window manipulation commands.

See:

:help Ctrl-W_T
:help Ctrl-W

Solution 2:

Try

:tabedit %<CR>