Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

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

Open
aGIToz opened this issue Jun 28, 2021 · 0 comments
Open

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

aGIToz opened this issue Jun 28, 2021 · 0 comments

Comments

@aGIToz
Copy link

aGIToz commented Jun 28, 2021

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");
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant