vim 使用 "cscope find s" 命令并在新选项卡中打开结果而不是 window

vim using "cscope find s" command and open result in new tab instead of window

我使用 cscope 命令 :cs find s someFunction 我看到了长长的带有这个函数外观的列表,我发现我对列表感兴趣并打开它,vim 在一个新的 window, 我想在新标签页中打开文件。

我找到了几个类似的问题,但都没有帮助。例如:

vim: Open tag in new tab

如何从 cscope 标签列表中打开新标签页

:tab 命令将拆分 windows 重定向到拆分选项卡。只需在您的 :cs 命令前加上它:

:tab cs find s someFunction