nautilus 将文件打开到新的 gvim 缓冲区中吗?
有没有办法配置 nautilus 在新缓冲区中将文件打开到现有的 gvim 进程中,而不是加载新的 gvim 实例?我知道我可以将文件拖放到 gvim 中,但如果我可以双击文件来打开它,那就更方便了。
Is there a way to configure nautilus to open a file into an existing gvim process in a new buffer instead of loading a new instance of gvim? I know I can drag and drop the file into gvim, but it would be convenient if I could just double-click a file to open it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在终端中
复制粘贴此代码:
在 Nautilus 中,
已完成
In a Terminal
Copy Paste this code :
In Nautilus
It's done
您实际上只是想使用 --remote-tab-silent 选项启动 gVim。来自 手册:-
也只需查看 --remote -silent 如果您不想要新选项卡并想要创建新缓冲区。
You're really just wanting to launch gVim with the --remote-tab-silent option. From the manual:-
Also just check out --remote-silent if you're not wanting a new tab and want to create a new buffer.