Created
March 3, 2014 22:05
-
-
Save blueplanet/9335669 to your computer and use it in GitHub Desktop.
StackEditでvim/emacsキーバインド設定 ref: http://qiita.com/blueplanet/items/da836ad23889c2877cc8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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