You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you consider adding support for arrow key navigation? I'm used to using arrows in vim since it's nice to be able to move the cursor in insert mode. Thanks
The text was updated successfully, but these errors were encountered:
This, I don't even think we can do because keycodes for arrow keys are not in single byte, and have a sequence. Reading such sequence will require some extra work especially in insert mode which wasn't designed to handle sequences unlike normal mode. If you want to make life easier implementing this, you can bind some ctrl + key instead; for moving in insert, then becomes straight forward to implement using the same concept of how backspace deletion works with only difference to not delete anything.
Yeah, it's a little trickier. I think the way it's done in vim is to set a timer when ESC is pressed and treat it as an arrow if the second byte is read before the timeout, or if no more bytes come before the timeout then it's treated as a normal ESC. https://vimhelp.org/options.txt.html#%27esckeys%27
Would you consider adding support for arrow key navigation? I'm used to using arrows in vim since it's nice to be able to move the cursor in insert mode. Thanks
The text was updated successfully, but these errors were encountered: