seanyeh / vibreoffice

Vi Mode for LibreOffice/OpenOffice
392 stars 35 forks source link

Esc with jk #6

Open MrJJJ opened 9 years ago

MrJJJ commented 9 years ago

Thanks a lot for this amazing plugin (I've been waiting that for a long time).

Is it possible to map jk on Esc (very popular mapping in vimrc) ?

seanyeh commented 9 years ago

Hi, thanks for your interest in my project! Unfortunately, I've been pretty busy so I haven't worked on it for a while.

It might be possible, but it's currently not a huge priority for me. From what I understand with the jk mapping, vim waits for about a second after you type a "j", and if you press a "k" during that time, it registers as an escape; otherwise, the "j" comes out as a normal letter. I don't know if that's even possible with LibreOffice Basic and the API, but it might be. It may be worth looking into if you're interested in it. A secondary (and more easily solvable) issue is how to allow user preferences, either from a custom vimrc or something else.

Hope this helps :)

perrycate commented 9 years ago

A user preferences vimrc type file would be really great. I doubt it could be nearly as full featured as a real .vimrc, but I really like the idea of users defining their own keybindings.

sdsaati commented 6 years ago

Hey, Thank you so much for building this ext for us 👍 I need jk too, Esc is really hard to press, I hope you do it asap thanks again!