Created
February 11, 2015 23:54
-
-
Save rksm/3318c4431a234815ee4f to your computer and use it in GitHub Desktop.
cloxp enable vim
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace YOUR-USERNAME with your user name :)