How to go to the tab if you are trying to open an already open file in Vim

I open new tabs using the command

:tabnew path/to/file

Is it possible to force Vim to switch to an already open tab with a file if I try to open a file that is already open?

+5
source share

All Articles