D. Hess
D. Hess

Reputation: 51

cmder starts vim in replace mode using ssh

This problem is persistent with cmder on my Windows 10 PC using ssh. I also installed conemu to verify if it's just a problem with cmder. Sure enough conemu will also start vim in replace mode. No matter what Linux client I log into, when I run vim with cmder or conemu, vim starts in replace mode.

vim does not start in replace mode when I use vim on cmder before I login to a linux client via ssh, use vim with Chrome ssh client or putty or use vim on Linux machines with cmder or conemu from my Windows 8.1 PC.

Attempted to remove cmder from my Windows 10 machine including through regedit to resolve the issue.

Upvotes: 3

Views: 1713

Answers (4)

Kartik Podugu
Kartik Podugu

Reputation: 194

Installing gvim for windows https://www.vim.org/download.php and having it in Path will also solve the problem.

Upvotes: 0

yhd.leung
yhd.leung

Reputation: 1552

You may try un-checking these In-console options in Cmder Settings > Features :

  • Inject ConEmuHk
  • ANSI and xterm sequences

Save settings, then start a new Cmder console, ssh and run vim to check if the problem resolves. These features are the cause of the problem on my Windows 10 PC.

Upvotes: 8

VCH
VCH

Reputation: 1

I don't know for sure if the problem is somehow related to cmder/ConEmu or exactly why, but I've had the problem with this configuration too (on Windows 10) and it was definitely related to the Windows 10's OpenSSH client as mentioned in this question.

I've uninstalled the Windows SSH client and installed one from Cygwin, and it works!

Tested with several versions from Cygwin:

  • OpenSSH_6.9p1, OpenSSL 1.0.2d 9 Jul 2015
  • OpenSSH_7.9p1, OpenSSL 1.0.2p 14 Aug 2018

Upvotes: 0

Stun Brick
Stun Brick

Reputation: 1244

I've had this problem before, for me specifically it came from trying to map something to whilst having plugins installed. Apparently me remapping my escape ruined some sequences ran by the plugins on startup and the advice I was given was to forget about trying to use my escape key for anything, because it just wasn't worth the effort.

Upvotes: 0

Related Questions