Skip to content

Instantly share code, notes, and snippets.

@blueplanet
Created March 3, 2014 22:05
Show Gist options
  • Save blueplanet/9335669 to your computer and use it in GitHub Desktop.
Save blueplanet/9335669 to your computer and use it in GitHub Desktop.
StackEditでvim/emacsキーバインド設定 ref: http://qiita.com/blueplanet/items/da836ad23889c2877cc8
userCustom.onReady = function() {
var ace = {}
ace.require = require
ace.define = define
ace.require(["ace/lib/net"], function(acenet) {
acenet.loadScript("//cdn.jsdelivr.net/ace/1.1.01/min/keybinding-vim.js", function() {
e = document.querySelector(".ace_editor").env.editor
ace.require(["ace/keyboard/vim"], function(acevim) {
e.setKeyboardHandler(acevim.handler);
});
});
});
window.ace = ace;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment