Due to my terminal emulator, I trying to remap ^[(key) to <A-(key)> with the > key.

How do I do a set for Alt + >?

I'm trying to run:

set <A->>=foo

But I get:

E846: Key code not set: <A->>=foo

If I try to escape the > I still get:

E846: Key code not set: <A-\>>=foo

You can use the following syntax to map the "alt + greater than" key combination

set <a-char-62>=...

62 being the ASCII code for >. This syntax also works for maps

nnoremap <a-char-62>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.