问题
Is there a function in Vim which will move to a buffer? For example, if I know that I have “TODO.txt” open in some window in some tab, I'd like to jump to that tab and focus that window. Is that possible?
回答1:
set swb=useopen,usetabe will set make :sb [number] or :sb [pattern] switch to an open window in whichever tab.
回答2:
I believe it's :drop filename
回答3:
I use
:buf TODO
you need a unique identifiying piece of the buffers filename. You can use tab-completion, though :)
Oh IC, just noted that you want to activate the corresponding tab. Sry
来源:https://stackoverflow.com/questions/5772331/vim-move-to-buffer