Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to let putty read directories in vim #82

Open
saccarosium opened this issue Jan 18, 2025 · 0 comments
Open

how to let putty read directories in vim #82

saccarosium opened this issue Jan 18, 2025 · 0 comments
Labels
bug issues reporting wrong behavior vim vim specific issues

Comments

@saccarosium
Copy link
Owner

  • nvim --version:0.5.0-746
  • vim -u DEFAULTS (version: ) behaves differently? no
  • Operating system/version: Windows 10
  • Terminal name/version: N/A
  • $TERM: N/A

Steps to reproduce using nvim -u NORC

init.vim

let g:netrw_cygwin= 0
let g:netrw_scp_cmd="\"D:\\PuTTY\\PSCP.EXE\" -l username -i C:\\id_rsa.ppk "
let g:netrw_sftp_cmd="\"D:\\PuTTY\\PSFTP.EXE\" -l username -i C:\\id_rsa.ppk "
nvim -u NORC
:e scp://username@ip//directory/

Actual behaviour

This is a vim failure to use putty to read directores, either using plink or pscp.

plink needs remote addr before ls command, and pscp -ls generates a detailed list that vim does not recognize.

Expected behaviour

As I posted as below, I can make it work. But it is not an ideal solution, since it does not cover situations for all usages. So maybe someone can make it better.
https://stackoverflow.com/questions/64747380/how-to-let-putty-read-directories-in-vim/64747381#64747381

Neovim\share\nvim\runtime\autoload\netrw.vim,

 elseif exists("g:netrw_ssh_cmd")
 "elseif executable(g:netrw_ssh_cmd)

init.vim

let g:netrw_ssh_cmd="\"D:\\PuTTY\\PLINK.EXE\" -l username -i C:\\id_rsa.ppk "

original issue: neovim/neovim#13256

@saccarosium saccarosium added bug issues reporting wrong behavior vim vim specific issues labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior vim vim specific issues
Projects
None yet
Development

No branches or pull requests

1 participant