简体   繁体   English

如何在不关闭Gvim中当前文件的情况下转到其他文件中的标记

[英]How to go to a mark in a different file without closing current file in Gvim

The title says it all. 标题说明了一切。 I have marked a line with 'A in onefile.txt. 我在onefile.txt中用'A标记了一行。 When I open it from secondfile.txt, it opens onefile.txt and goes to the line marked 'A. 当我从secondfile.txt打开它时,它将打开onefile.txt并转到标记为'A.的行。 But, in the process, secondfile.txt is closed. 但是,在此过程中,secondfile.txt已关闭。

How can I set up that secondfile.txt remains open and onefile.txt is opened in a separate tab or separate window? 如何设置secondfile.txt保持打开状态,并在单独的选项卡或单独的窗口中打开onefile.txt? I could not find it on seaching the net. 我在网上搜寻时找不到它。 Thanks for your help. 谢谢你的帮助。

You can split the current window and jump to that mark: 您可以拆分当前窗口并跳至该标记:

:vs
'A

or: 要么:

:vs|norm 'A

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM