开发者

how to open same file in same tab for commandline vim

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜