oni2 icon indicating copy to clipboard operation
oni2 copied to clipboard

Keybinding ending sequence in insert mode don't work if there was a command mode action given beforehand

Open anschnapp opened this issue 3 years ago • 0 comments

Seems like a strange error to me. I was faced this on a more complex binding and tried to find a reproducable minimal example; so here we go:

nnoremap q :noh<cr>xxA

This mapping should do (works in vim and nvim):

  • execute noh<cr> (so remove highlights from the last search)
  • xx = remove two lines in insert mode
  • A = ends in insert mode at end of the line

But in onivim 2 it does not end up in insert mode. This seems only to happen if there was a command line action (so here :noh<cr> beforehand. As the xx shown us the normal mode actions after such a command action still works.

anschnapp avatar Aug 13 '21 20:08 anschnapp