Well, guys, maybe this has already been asked before, but I searched and ran without throwing anything, so Iβll take a chance here.
I am using the latest vim (gvim 7.3) on Windows 7 64bits.
I have deleted files that I want to edit directly with vim using netrw.
Right now, I have a fully working transparent ssh connection for my remote hosts, thanks to the Putty, Pageant, and public / private keys.
I have successfully set read / write access to remote files with these fixes:
Then I can access the file with:
:e scp:\\user@host:port\\home\me\some-file.txt
And every time I access the remote file, Vim launches the Windows prompt (cmd.exe):
C:\Windows\system32\cmd.exe /cc:\"Program Files (x86)"\PuTTY\pscp.exe -q -batch -P 22 "C:\Users\me\AppData\Local\Temp\VIF215E.tmp" "user@host:/home/me/some-file.txt" Hit any key to close this window...
My problem is that pressing a key outside of Vim every time I want to open / write a file is inefficient at all.
So my question is (is):
- Am I doing it right?
- Is there any other way of transparency accessing a remote file using ssh on Windows?
- If not, is there a way to get rid of "Hit any key to close this window ..." when Vim runs putty pscp.exe?
Thanks a lot and a happy smile.
EDIT: Note to me in the past: Dude, just go with linux and vanilla gvim / ssh. You will thank me later (and look at spf13-vim)
vim
bPizzi
source share