vimium-c icon indicating copy to clipboard operation
vimium-c copied to clipboard

How to implement inoremap jj <ESC> in input like vim

Open alaric8 opened this issue 1 year ago • 1 comments

alaric8 avatar Sep 14 '24 17:09 alaric8

Um Vimium C can not support jj as <esc>, because if applying this feature it will never know whether to block the first j key or not.

But you may map some other single keys to <esc>, and there has been <c-[> by default:

  • mapKey <c-d:i> <esc> will make Ctrl+D trigger Vimium C's "ESC-keydown" behavior only in insert mode
  • mapKey <c-d> <esc> will make Ctrl+D trigger Vimium C's "ESC-keydown" behavior in all modes

gdh1995 avatar Oct 19 '24 11:10 gdh1995