jupyter-vim-binding icon indicating copy to clipboard operation
jupyter-vim-binding copied to clipboard

Need help; trying to create a code snippet in insert mode.

Open aGIToz opened this issue 4 years ago • 0 comments

I want to create a code snippet.

Here is an elementary challenge I am trying to solve. Basically I write "arr" in insert mode and it is converted to "superarray".

In vim one can use imap to create some code snippets I am trying to do the same here. But it is not working how to make it work?

require([
  'nbextensions/vim_binding/vim_binding',
], function() {
  CodeMirror.Vim.map("arr", "mysuperarray", "insert");
});

aGIToz avatar Jun 28 '21 20:06 aGIToz