vim作为mutt的编辑器:指定在标题下打开换行符作为命令行选项

时间:2019-05-25 19:00:24

标签: vim mutt

我使用vim作为mutt中邮件的编辑器(启用了edit_headers),并使用editor中的muttrc变量将选项传递给它:

set editor="nvim  \"+set tw=80\"  \"+set fo=aw\" \"+set nonumber\" \"+set spell\" +/^$/ \"+nohl\" +o"

这会使光标进入将标题与正文分开的行,但是实际的正文文本当然会在下面的新行中开始。因此,我按“ o”打开换行符并可以开始键入。

有没有办法告诉vim自动执行“按o”操作,以便我可以立即开始打字?

1 个答案:

答案 0 :(得分:2)

+startinsert+"normal o"

make_shared在当前行而不是下一行开始插入模式weak_ptr模拟在正常模式下按下startinsert

相关问题