1995eaton / chromium-vim

Vim bindings for Google Chrome.
https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh
MIT License
2.25k stars 326 forks source link

How to remap keys for <ESC>? #178

Open naveensrinivasan opened 9 years ago

naveensrinivasan commented 9 years ago

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

How do I do it?

Thanks

hpurmann commented 9 years ago

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

y2kbugger commented 9 years ago

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

etmoore commented 8 years ago

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?

mrzool commented 7 years ago

This would be pretty cool indeed.

sjlnk commented 7 years ago

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.

msundin commented 7 years ago

+1

m0rphism commented 1 year ago

+1 and bump