I'm opening new tabs using command
:tabnew path/to/file
Is it possible to force Vim to jump to already opened tab with file, if I'm trying to open file which is already opened?
In vim, how do you open the currently opened file in a new tab? In order to open the current file in a new tab, utilize tabnew like so: This utilizes the command :tabnew, in which opens a new tab with the argument %, which expands to the currently selected buffer’s file.
Editing multiple files at once is made easier in the vim text editor with the use of tabs. Vincent Danen goes over the basic tab commands and shows you how to combine them with key bindings to make the most of a powerful editing tool. Most people use a text editor to edit one file at a time.
In order to open the current file in a new tab, utilize tabnew like so: This utilizes the command :tabnew, in which opens a new tab with the argument %, which expands to the currently selected buffer’s file. You can move the window, rather than opening the file, with the following keybind:
Try to use the :drop
command. It helps. Related infos:
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