chromium-vim icon indicating copy to clipboard operation
chromium-vim copied to clipboard

How to remap keys for <ESC>?

Open naveensrinivasan opened this issue 10 years ago • 7 comments

I would like remap jk with escape key. inoremap jk <esc>

How do I do it?

Thanks

naveensrinivasan avatar Dec 13 '14 14:12 naveensrinivasan

As far as I know this is currently not possible. cVim is not listening which keys you type while having focused an input field.

hpurmann avatar Dec 13 '14 19:12 hpurmann

as a test I did imap jk editWithVim

and it is at least listening because it eats the "j" and only the k is printed jj yields nothing being printed

this would be killer though. I even have those remapped on readline in bash

also mapping that to j causes it to work and launch vim while in insert mode, so I think that this should be possible

y2kbugger avatar Jan 20 '15 06:01 y2kbugger

Related question: I would like to unmap escape and just use <C-[> instead because there are times when I want to press escape but stay in insert mode. I've tried unmap <Esc> in my .cvimrc, but it doesn't seem to have an effect. Anyone know if there's a way to unmap the escape key?

etmoore avatar Apr 26 '16 16:04 etmoore

This would be pretty cool indeed.

mrzool avatar Apr 12 '17 21:04 mrzool

Also looking forward to this feature. Now the only option seems to be to edit content_scripts/mappings.js and content_scripts/keys.js manually.

sjlnk avatar Apr 26 '17 04:04 sjlnk

+1

msundin avatar Oct 15 '17 11:10 msundin

+1 and bump

m0rphism avatar Mar 15 '23 19:03 m0rphism