Skip to content

Instantly share code, notes, and snippets.

@graph226
Created October 21, 2017 08:53
Show Gist options
  • Save graph226/a41edc2b5052291b25d2e004e3ac59f3 to your computer and use it in GitHub Desktop.
Save graph226/a41edc2b5052291b25d2e004e3ac59f3 to your computer and use it in GitHub Desktop.
keybinding
require([
'nbextensions/vim_binding/vim_binding', // depends your installation
], function() {
// Map jj to <Esc>
CodeMirror.Vim.map("jk", "<Esc>", "insert");
});
@graph226
Copy link
Author

To customize mappings provided by [CodeMirror's Vim][], create a [custom.js][] at ~/.jupyter/custom/custom.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment