Simple question, with Vim can I create a new file, and open it in a new tab in one command?
At the moment I am:
:new
to create a new file:tab split
to get this file into a new tab:tabp
to go back to the previous tab:q
to close the other instance of the file:tabn
to go to my new fileBit of a mouthful for what would in other text editors be a single action, is this possible?
Thanks
Maybe this is what you are looking for:
:tabe[dit] {filename}
Of course, {filename}
can also be an existing file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With