tags:

views:

83

answers:

2

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

+7  A: 

Try

:tabedit %<CR>
Mykola Golubyev
Just curious why you included the <CR> with that.
Swiss
For the same reason I did include ":". This is the complete vim keys combination in normal mode and you can use this in 'nnoremap' and in 'nmap'
Mykola Golubyev
+5  A: 

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
Al