PSReadLine: PSReadLine 2.0 Vi mode visual editing with vim doesn't work

I can’t edit a command line in vim with PSReadLine 2.0. This worked fine in previous versions so I think it might have something to do with the change in output encoding.

Environment data

PS version: 6.1.0-preview.503 PSReadline version: 2.0 os: 10.0.15063.0 (WinBuild.160101.0800) PS file version: 6.1.0

Steps to reproduce or exception report

  • set $env:VISUAL = 'vim.exe'
  • type command to edit
  • press ESC
  • press v

result: image

  • press ZQ to exit vim and the previous screen is cleared.

If I change $env:VISUAL = 'gvim.exe' everything is fine since gvim opens out of process.

Behavior is the same with PSReadLine under Windows PowerShell 5.1…

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

I’m closing this issue. It’s long been resolved and I must’ve forgotten to close it then. 😦