-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ctrl+left/right doesn't work correctly in vim #193
Comments
xterm uses a bitmap to handle shift, alt and ctrl status. See here. NOTE: There is no meta anymore nowadays, which makes it somewhat hard to adopt. The closest I was able to get for vt1xx emulation was the following: and feeding the modifiers state back into this
|
Unfortunately I won't have access to a Linux machine until tomorrow to try this out and Ctrl + ←/→ won't work here as they are used by host. It would help if you could provide us with the code sent by xterm.js when hitting Ctrl + ← in plain bash, compared with the code in Vim (which should have |
The modifier state will be added to the escape sequence as the second parameter (right before the final character) like this: Modifier states
When I get my hand on a linux machine I can create you a complete list of the sequences. |
These are the arrow key sequences (xterm treats home and end as arrow keys):
(copied from a python testscript) Note: Not all combinations are supported by some keyboards (e.g. my laptop keyboard cant use shift+page up while ctrl and alt works). |
ctrl+left doesn't jump over words and ctrl+right erases everything to the right of the cursor
Details
Steps to reproduce
Type the following:
ctrl+left
ctrl+right
The text was updated successfully, but these errors were encountered: