hjkl cursor movement in vi/vim

hjkl cursor movement in vi/vim

avatar

I'm not sure when this started, but when using vi/vim in an SSH session (using iTerm2 emulation), the cursor movement keys h, j and k will only move the cursor 1 character per key press, the l key you can hold down and get the cursor to move constantly for as long as the key is pressed down (this is the desired behaviour and how the arrow keys work). I can't replicate this issue directly in iTerm2 (all navigation keys work as expected).

Does anyone have any ideas how to fix this issue (or an least replicate it)?

Cheers
Paul

All Comments (5)

avatar

Hi,

I can't reproduce your issue in a SSH entry on my side, but I'm also not sure what you mean here by "iTerm2 emulation". Could you elaborate on what you mean by this? And elaborate on how your session is configured?

Best regards,

Xavier Fortin

avatar

Hi,
Apologies, I wasn't clear. In Settings -> Types -> Terminal -> External -> Terminal Application: iTerm2 (although regardless of what that's set to, I have the same issue).

forum image
This is my terminal settings. I'm also using an iterm2 colour scheme. Everything else is default. I have the same issue remotely connected to RHEL systems as I do connecting to my Mac.

Thanks

avatar

Ah! Just so you know, if you are opening your sessions in embedded mode (that is, as tabs inside RDM), this option actually has no effects. It's really only to determine what external application between Terminal.app and iTerm.app will be used when launching an SSH session externally.

Do you have the Settings -> User Interface -> Keyboard -> "Enable suggestion on key press and hold" set to Yes? If so could you try setting it to No, restarting and seeing if that solves the issue?

Best regards,

Xavier Fortin

avatar

Hi there, thanks for the reply and info.

And excellent, it was set to yes, now set to no and it's fixed my issue.

Thanks so much!

avatar

Glad to hear it!

Xavier Fortin