New vim and jupyterlab insert mode mappings
Jupyter-lab
By default, <Esc>
— bad idea for the same reason in vim it’s a bad idea.
AND my xkeymap-level keyboard mapping for Esc doesn’t seem to work here.
Default-2 is <C-]> which is impossible because of my custom keyboard layout.
Will be <C-=>
.
{
"command": "vim:leave-insert-mode",
"selector": ".jp-NotebookPanel[data-jp-vim-mode='true'] .jp-Notebook.jp-mod-editMode",
"keys": [
"Ctrl =",
]
}
(I can’t figure out why ,l
etc. don’t work in jupyterlab for this purpose)
vim
(<leader>
is ,
)
"Insert mode mappings
" Leave insert mode
imap <leader>l <Esc>
imap qj <Esc>
" Write, write and close
imap ,, <Esc>:x<CR>
map ,. :w<CR>
… I will have an unified set of bindings for this someday, I promise.
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus