lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.
2.1k stars 136 forks source link

how do I use arrow keys? #141

Open foice opened 5 years ago

foice commented 5 years ago

I have managed to use the .jupyter/custom/custom.js file to put in some of the snippets kindly provided, as they suited me. However I want to have the possibility to move from one cell to the adjacent using the arrow keys, instead of god gived jk, is there any way to use arrows?

lambdalisue commented 5 years ago

Probably you need to map jupyter-notebook:select-previous-cell/jupyter-notebook:select-next-cell to arrow keys as Jupyter's mappings rather than CodeMirror's. Easiest way is using Keybaord Shortcut Editor of Jupyter which is explained in https://github.com/lambdalisue/jupyter-vim-binding#customization

foice commented 5 years ago

Yes, you are right, all the standard cusotmization from help menu of jupyter still works to affect the Jupyter mode bindings, I though now one had to go vim all the way!

On Sun, Apr 14, 2019 at 3:03 PM Alisue notifications@github.com wrote:

Probably you need to map jupyter-notebook:select-previous-cell/jupyter-notebook:select-next-cell https://github.com/lambdalisue/jupyter-vim-binding/blob/master/lib/jupyter/shortcuts.js#L41-L42 to arrow keys as Jupyter's mappings rather than CodeMirror's. Easiest way is using Keybaord Shortcut Editor of Jupyter which is explained in https://github.com/lambdalisue/jupyter-vim-binding#customization

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lambdalisue/jupyter-vim-binding/issues/141#issuecomment-482971261, or mute the thread https://github.com/notifications/unsubscribe-auth/AI8aNXXUG4sVyBdirwGLtLYBFmQyWfuRks5vgycmgaJpZM4cuQS9 .