views:

77

answers:

1

Is there any command in vim with which I can jump to an already open tab containing the file which is open in the tab.

And that too with possibility of completion among all the open buffers.

For example you have following files open in different tabs.

  1. readme.txt
  2. pom.xml

Then the command jt will autocoplete the buffer names and jump to the tab containing the buffer.

+3  A: 

You can use the command :sb <buffer>

You'll have to :set swb=usetab, in order to use existing open window in another tab. Otherwise it will just split the current window.

François