我不知道这个“协议”的插件是否已经存在,但是如果您想编写自己的插件,您应该看看 BufReadCmd 事件(以及 BufWriteCmd)。如果您不想从头开始,可以在 $VIMRUNTIME/plugin/netrwPlugin.vim 中定义一些此类事件(例如,对于 ftp:// 协议)文件应该随你的 vim 安装一起提供。
I do not know whether plugin for this «protocol» already exists, but if you want to write your own, you should take a look at BufReadCmd event (and also BufWriteCmd). If you don't want to start from scratch, some such events are defined in $VIMRUNTIME/plugin/netrwPlugin.vim (for example, for ftp:// protocol) file which should come with your vim installation.
如果可能,请使用
mvim:// /
-协议 代替。它应该与 txmt:// 协议兼容。如果您无法更改链接本身,您可以尝试编辑 MacVim 的
Info.plist
。If possible, use the
mvim://
-protocol instead. It should be compatible with thetxmt://
-protocol.If you are not able to change the links themselves, you could try editing the
Info.plist
for MacVim.