1

If I've already opened a tab with:

:tabe

Is it possible to load the file in that tab? For example, to do something like:

:o ~/.vimrc

In other words, instead of doing :tabe ~/.vimrc, can I do that in two commands (one to open the new tab and another to open that file)?

David542
  • 2,445
  • 14
  • 50

1 Answers1

2

You’re looking for :tabnew followed by :edit file (but why? :tabedit does the same and is shorter).

I believe <C-w>T will also break the current window into a new tab.

D. Ben Knoble
  • 26,070
  • 3
  • 29
  • 65