Tuesday, February 14, 2012

Re: Simple Settings for PUTTY, Windows 7, and VIM/GVIM 7.3

On Feb 14, 4:27 pm, Gary Furash <furashg...@gmail.com> wrote:
> I haven't been able to get gVim/Vim 7.3 on windows to work with the putty
> executables.
> 1. they're in my path;
> 2. they work perfectly fine from the dos command line;
> 3. I can use the WinSCP edit link to edit things with gVim
> 4. these are my current settings. Note that PASSWORD has my actual
> password. I added -l and -pw because VIM would just hang when I tried to
> sftp to a known directory. I added the first one based on a note from the
> group
>
> let g:netrw_list_cmd="plink.exe HOSTNAME ls -Fa -l furashg -pw PASSWORD"
> let g:netrw_scp_cmd="pscp.exe -q"
> let g:netrw_sftp_cmd="psftp.exe -l furashg -pw PASSWORD"
> If I just type:
>  e sftp://furashg@[address]/
>   e sftp://furashg@[address]/home/furashg/
> it doesn't hang, but I don't see any file list (though it claims to be
> listing files.
>
> When I leave out the -l and -pw parameters, I get the same result.
>
> There must be numerous people who have gotten this to work. If anyone has
> any advice, I'd appreciate it.

Here's my netrw settings below. The only significant
difference I can see is the -batch parameter on the SCP
command. Actually I only use the SCP command, e.g. to open
a file

:e scp://root@mybox/mydir/myfile

to open a directory

:e scp://root@mybox/mydir/

I'm using gvim 7.3 patches 1 - 333 "Vim without Cream"
build, putty 0.61, on Windows XP SP3, netrw dated 13/10/2011
on my system (I can't figure out how to see the netrw
version)

Bit of a rushed answer since I'm off home now, hth.

regards,
Geoff

"Silent disables the prompts 'Press any key' etc
let g:netrw_silent=1
"Mousemaps breaks use of mouse for instance of vim afterwards if open
"directory
let g:netrw_mousemaps=0

let g:netrw_list_cmd='"c:\Program Files\PuTTY\plink.exe" -pw ' .
a:password_string . ' HOSTNAME ls -Fa'
let g:netrw_scp_cmd='"c:\Program Files\PuTTY\pscp.exe" -pw ' .
a:password_string . ' -q -batch'
let g:netrw_sftp_cmd='"c:\Program Files\PuTTY\psftp.exe" -pw ' .
a:password_string


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: