lambdalisue / jupyter-vim-binding

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

Mapping keys, configuration. #96

Closed gusseppe closed 7 years ago

gusseppe commented 7 years ago

Summary

To sum up, I want to map the h,j,k,l keys to j,k,l,; In other words I would like to put my fingers (right hand) one step right.

Environment

Step by step procedure

require([ 'nbextensions/vim_binding/vim_binding', // depends your installation ], function() {

CodeMirror.Vim.map("l", "(vim-binding-gk)", "normal"); CodeMirror.Vim.map("k", "(vim-binding-gj)", "normal"); CodeMirror.Vim.map("gk", "(vim-binding-l)", "normal"); CodeMirror.Vim.map("gj", "(vim-binding-k)", "normal");

});

I've mapped successfully the k,l,; keys, but mapping the h into j was not possible so far.

lambdalisue commented 7 years ago

Currently, it's not possible I think while CodeMirror does not have noremap alternative. This is an issue of CodeMirror