Vim to go to the tab (tabpage) containing the file name

Is there any command in vim with which I can go to an already open tab containing a file open on the tab.

And this is also with the possibility of completion among all open buffers.

For example, you have the following files open on different tabs.

  • readme.txt
  • pom.xml

Then, the jt command will autocopy the buffer names and go to the tab containing the buffer.

+4
source share
1 answer

You can use the command :sb <buffer>

You will need :set swb=usetab to use an existing open window on another tab. Otherwise, it will simply split the current window.

+6
source

All Articles