开发者

how to open same file in same tab for commandline vim

开发者 https://www.devze.com 2023-02-12 06:00 出处:网络
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? ThanksI think what you want is set switchbuf=usetab in your .vimrc.

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.

0

精彩评论

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