I remapped the Esc key to jj as follows:

inoremap jj <esc>l

If I only put <esc> the cursor is always one letter to the right, however once I add the l the notification message --INSERT -- won't go away.

How can I solve this issue without removing the l?

  • I can't recreate this behavior. Does it still happen when you launch vim with -u NONE? (remember that you'll need :set showmode) – DJMcMayhem Feb 11 at 17:34
  • 1
    I can reproduce it with Vim 8.1.885/Linux. Even with vim -u NONE. The simplest fix is inoremap jj <esc>l<c-l>. – Ralf Feb 11 at 20:44

Your Answer

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

Browse other questions tagged or ask your own question.