I kno开发者_高级运维w another session said use :drop can do it but I only use command line vim. Is there a plugin can do it? Thanks
I think what you want is set switchbuf=usetab
in your .vimrc
.
With this set you can then do :sb <part-of-filename-or-buffer-number>
to switch to the tab or window that has that buffer open. In this example: :sb A
.
See :help 'switchbuf'
for more information.
Is vim -o the_file the_file
what you want?
I am not sure I understand you question correctly but:
e
-> reloads the active file.
e myfile.txt
-> opens another file in the active tab.
精彩评论