yhat / rodeo

A data science IDE for Python
Other
3.93k stars 411 forks source link

Map vim keybindings #213

Open stsievert opened 8 years ago

stsievert commented 8 years ago

It'd be nice to map the vim keybindings (i.e., imap jk <Esc> to escape out of normal mode more quickly).

Jupyter vim bindings does a the same thing for Jupyter notebook using Codemirror Vim API. It's possible to define a mapping in ~/.jupyter/custom/custom.js (further instructions on mapping found in jupyter-vim-binding's readme).

TakenPilot commented 8 years ago

We have vim key bindings in the latest pre-release version. Are you talking about extra mappings on top of the defaults?

stsievert commented 8 years ago

When I filed this issue, in my cursory look I couldn’t find any vim bindings.

You mean like reading a .vimrc? Personally, the only one I need is mapping to jk.

TakenPilot commented 8 years ago

Yeah, that. Or maybe I should add a UI interface to that file?

stsievert commented 8 years ago

I know for the Jupyter notebook, they have some mappings built in. With this, the only mapping I need is Esc. I'm fine editing some file (for Jupyter, it wasn't even in VimL) somewhere in the source, but a UI would be nice (if not in VimL, provide examples?).