有没有办法配置nautilus在新缓冲区中打开现有gvim进程而不是加载新的gvim实例?我知道我可以将文件拖放到gvim中,但是如果我只需双击一个文件就可以打开它.
在一个终端
cd ~/.local/share/applications vi gvim-tab.desktop
复制粘贴此代码:
[Desktop Entry] Encoding=UTF-8 Name=GVim Text Editor (Tabs) Comment=Edit text files in a new tab Exec=gvim --remote-tab %F Terminal=false Type=Application Icon=/usr/share/pixmaps/vim.svg Categories=Application;Utility;TextEditor; StartupNotify=true MimeType=text/plain; NoDisplay=true
在Nautilus
Right-Click in a text file Open With Open with a another application Select "GVim Text Editor (Tabs)"
完成