Skip to content

Instantly share code, notes, and snippets.

@creamidea
Last active January 2, 2016 09:18
Show Gist options
  • Save creamidea/8281663 to your computer and use it in GitHub Desktop.
Save creamidea/8281663 to your computer and use it in GitHub Desktop.
ace vim.js
ace.require("ace/lib/net").loadScript("https://raw.github.com/ajaxorg/ace-builds/master/src-min-noconflict/keybinding-vim.js", function() {
e = document.getElementById("ace-editor").env.editor;
e.setKeyboardHandler(ace.require("ace/keyboard/vim").handler);
})
// for gist
ace.require("ace/lib/net").loadScript("https://rawgithub.com/ajaxorg/ace-builds/master/src-min-noconflict/keybinding-vim.js",
function() {
e = document.querySelector(".ace_editor.ace-github").env.editor;
e.setKeyboardHandler(ace.require("ace/keyboard/vim").handler);
})
@creamidea
Copy link
Author

ace.require("ace/lib/net").loadScript("https://rawgithub.com/ajaxorg/ace-builds/master/src-min-noconflict/keybinding-vim.js",
function() {
e = document.querySelector(".ace_editor.ace-github").env.editor;
e.setKeyboardHandler(ace.require("ace/keyboard/vim").handler);
})

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