首页 > 解决方案 > `:!mutt -f some.mbox` 适用于 Vim 8.1,但在 NeoVim 0.3.1 中返回 `No recipients specified`

问题描述

mutt 命令行开关-f用于“指定要加载的邮箱”。例如,以下命令加载 MBOX 格式文件some.mbox

$ mutt -f some.mbox

(已添加:)我可以从 Vim 8.1 命令行运行它::!mutt -f some.mbox

然而,同样的命令,当在 NeoVim 0.3.1 中运行时(是:在 shell 脚本中或在 vim 命令行上)返回:No recipients specified.

我已经在 MacOS 和 Linux 机器上测试过了。在 Web 上搜索许多变体mutt no recipients specified并没有找到任何线索。

我有一个 Vimscript 函数,它在当前行搜索 MBOX 格式文件的路径名(例如,/Users/foo/some.mbox)并在 mutt 中调用该文件 - 但仅在 Vim 8.1 中运行时,而不是在 NeoVim 中。

标签: vimneovimmutt

解决方案


推荐阅读