GVim:在新标签页中打开 [英] GVim: Open in a new tab

查看:58
本文介绍了GVim:在新标签页中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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 中.如果您键入 :e 然后删除一个文件,命令行将填写文件的完整路径.你可以用 :sp:tabe 做同样的事情;记得在命令后面加空格!

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 :e and then drop a file, the command line will be filled out with the full path to the file. You can do the same with :sp and :tabe; just remember to put the space after the command!

这篇关于GVim:在新标签页中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆