Skip to content

Instantly share code, notes, and snippets.

@rksm
Created February 11, 2015 23:54
Show Gist options
  • Save rksm/3318c4431a234815ee4f to your computer and use it in GitHub Desktop.
Save rksm/3318c4431a234815ee4f to your computer and use it in GitHub Desktop.
cloxp enable vim
module('users.YOUR-USERNAME.config').requires().toRun(function() {
lively.Config.set("useEmacsyKeys", false);
module("lively.ide.CodeEditor").runWhenLoaded(function() {
ace.config.loadModule(["keybinding", 'ace/keyboard/vim'], function(vim) {
lively.Config.codeEditorUserKeySetup = function(editor) {
editor.withAceDo(function(ed) {
ed.keyBinding.addKeyboardHandler(vim.handler);
})
};
});
});
}) // end of module
@rksm
Copy link
Author

rksm commented Feb 11, 2015

Replace YOUR-USERNAME with your user name :)

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