0

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.