开发者

vim command to jump to a tab (tabpage) containing the filename

开发者 https://www.devze.com 2023-01-16 01:19 出处:网络
Is there any开发者_JAVA百科 command in vim with which I can jump to an already open tab containing the file which is open in the tab.

Is there any开发者_JAVA百科 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号