vim - save password while editing remote files using scp

691 views
Skip to first unread message

Aman Jain

unread,
Oct 29, 2010, 10:57:53 PM10/29/10
to vim_use
I'm trying to edit remote files using gvim in this manner:

$ gvim scp://user...@server.edu//home/username/new.txt
But everytime I do a save, I have to enter password.
I looked up on the internet to see if there's a way by which vim
remembers remote
passwords.

So I found that creating a file called ~/.netrc does this for ftp
transfer (http://vim.wikia.com/wiki/
Editing_remote_files_via_scp_in_vim)

I've also changed the permission of the file to 600, but still I'm
being prompted for passwd.

Am I missing something?

Charles E Campbell Jr

unread,
Oct 30, 2010, 4:33:10 PM10/30/10
to vim...@googlegroups.com
.netrc is for ftp; ssh/scp pays no attention to it.

In reading :help netrw-password , you'll find a reference to reading
:help netrw-ssh-hack . You may find it helpful.

Regards,
Chip Campbell

Reply all
Reply to author
Forward
0 new messages