windows GVim:在新标签页中打开

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3574446/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:06:55  来源:igfitidea点击:

GVim: Open in a new tab

windowsvim

提问by Rafid

I am using gVim on Windows and facing the annoying thing of having a new gVim window opened whenever I open a new file. Is it possible to make it open a new tab in the same window?

我在 Windows 上使用 gVim 并面临着每当我打开一个新文件时都会打开一个新 gVim 窗口的烦人的事情。是否可以让它在同一窗口中打开一个新选项卡?

Thanks, Rafid

谢谢,拉菲德

回答by dash-tom-bang

Also (more tedious but generally useful for other things) you can drag&drop files from Windows Explorer into gVim when the command line is active. If you type :eand then drop a file, the command line will be filled out with the full path to the file. You can do the same with :spand :tabe; just remember to put the space after the command!

此外(更乏味但通常对其他事情有用)您可以在命令行处于活动状态时将文件从 Windows 资源管理器拖放到 gVim 中。如果您键入:e然后删除文件,命令行将填写文件的完整路径。你可以用:spand做同样的事情:tabe;只记得在命令后面放空格!