Take the 2-minute tour ×

I have opened a file in a horizontal or vertical split and which to put it in a new tab instead. Can this be done easily?

share|improve this question
add comment

2 Answers

up vote 12 down vote accepted

Very easily, use CTRL+W, SHIFT+T.

See the help page:

:help CTRL-W_T

Note that this is case sensitive: <C-W>T is different to <C-W>t.

share|improve this answer
add comment

The long-and-straight-forward way would be to open a new tab and open the file's buffer there.


:b can TAB-complete from arbitrary parts of the file name, so this shouldn't take too long.

share|improve this answer
add comment

Your Answer


