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?

link|improve this question

75% accept rate
feedback

2 Answers

up vote 2 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.

link|improve this answer
feedback

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

:tabnew
:b FILE_NAME

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.