如何使用默认的pdf应用程序从Vim打开pdf文件?

Mer*_*glu 5 pdf vim

我想在默认的pdf查看器应用程序中使用来自Vim的文件链接打开pdf文件,这是我的osx上的预览.

在Vim中打开文件链接有gf正常的命令.但是应该在外部应用程序中打开pdf文件.

rgo*_*ira 6

正如@Ken 在评论中所说,你应该使用gx

Certain files, such as html, gif, jpeg, (word/office) doc, etc, files, are
best seen with a special handler (ie. a tool provided with your computer).
Netrw allows one to invoke such special handlers by:

    * when Exploring, hit the "x" key
    * when editing, hit gx with the cursor atop the special filename
Run Code Online (Sandbox Code Playgroud)

可以在 中找到更多信息:help gx