【发布时间】:2019-02-15 05:39:26
【问题描述】:
在 Vim 中,这会提示我输入允许我编辑远程文件的密码:
:e scp://username@host//path
然而,在 NeoVim 中使用相同的命令不会提示输入密码,因为底层命令 :! scp user@host:path LOCAL-TEMPFILE 在 NeoVim 中不能以交互方式工作:https://github.com/neovim/neovim/wiki/FAQ#-and-system-do-weird-things-with-interactive-processes
使用通过 ssh 进行密码验证的 NeoVim 编辑远程文件的最佳做法是什么?
【问题讨论】: