Closed gusseppe closed 7 years ago
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.
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.
Currently, it's not possible I think while CodeMirror does not have noremap alternative. This is an issue of CodeMirror
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.