I am trying to edit remote file through neovim by:
nvim scp:://user@hostname//path/to/file
An empty buffer is opened without asking for my password.
Upon writing to the file I get the following:
:!scp -q '/tmp/nvimd24gVl/2' 'user@hostname//path/to/file'
lost connection
shell returned 1
I read #8989 and found that :!
do not support interactive commands.
But I don’t how to figure it out if I want to edit remote file through neovim. What is the correct way to do this?
nvim --version
: NVIM v0.5.0-828-g0a95549d6
I am using ubuntu 18.04
in wsl.