Thursday, April 13, 2017

keycode string of arrow keys don't work in command-line expression

I found that when typing in the command line, using ^R= followed by a string of keycode "\<C-Left>" or "\<C-Right>" is not working as expected. Instead of bringing the cursor to the beginning/end of the current word, they resulted in strings like this:
:MyCommand<80>ýU
after typing :MyCommand followed by ^R= and then "\<C-Right>"

Keycodes other than the arrow keys, like "\<C-w>" and "\<C-e>" works properly in the command line expression.

I like to use these keycodes in some custom key-mapping, is there any way to work around this? The version is 8.0.540

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment