Skip to content

Instantly share code, notes, and snippets.

@KyleGobel
Created August 15, 2014 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KyleGobel/8f20d4a17333f7514a54 to your computer and use it in GitHub Desktop.
Save KyleGobel/8f20d4a17333f7514a54 to your computer and use it in GitHub Desktop.
VI StackEdit.io plugin
userCustom.onReady = function() {
var ace = {}
ace.require = require
ace.define = define
ace.require(["ace/lib/net"], function(acenet) {
acenet.loadScript("//cdnjs.cloudflare.com/ajax/libs/ace/1.1.01/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;
};
@KyleGobel
Copy link
Author

Settings -> Extensions -> UserCustom Extension -> Copy & Paste

@174n
Copy link

174n commented Apr 25, 2018

what settings do you mean? I don't see "UserCustom Extension" option

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