jupyterlab-contrib / jupyterlab-vim

Vim notebook cell bindings for JupyterLab
https://jupyterlab-contrib.github.io/jupyterlab-vim.html
MIT License
662 stars 43 forks source link

Remap "hjkl" #7

Open jbirnick opened 4 years ago

jbirnick commented 4 years ago

Hi, first of all thanks for the great extension!

In my normal vim I have remapped "hkjl" to "jkl;". How can I do this in jupyterlab? And if it is not possible in your extension, do you know which files of jupyter I can modify to get this?

Thanks!

axelfahy commented 4 years ago

Some commands are defined inside the src/index.ts file. However, basic moves come from CodeMirror (https://codemirror.net/demo/vim.html) In this file: https://codemirror.net/keymap/vim.js, there are the default key mappings. You could try to remap them.

ianhi commented 3 years ago

I think we talked about this on the jupyterlab issue https://github.com/jupyterlab/jupyterlab/issues/8436 but for any future finders of this issue I too ran into this and have made an extension that allows remappings using the jupyterlab settings editor: https://github.com/ianhi/jupyterlab-vimrc