define(function(require, exports, module) {

exports.showCli = true;
exports.aceKeyboardHandler = require("ace/keyboard/vim").handler;

exports.aceKeyboardHandler.defaultKeymap.unshift(
    { keys: ':', type: 'action', action: 'aceCommand', actionArgs: { exec: function(ace) {
        ace.showCommandLine(":");
    } } }
);

exports.aceKeyboardHandler.defaultKeymap.push(
    {keys: 'gt', type: 'action', action: 'aceCommand', actionArgs: {exec: ideCommand, name: 'gototableft'}},
    {keys: 'gT', type: 'action', action: 'aceCommand', actionArgs: {exec: ideCommand, name: 'gototabright'}}
);

exports.execIdeCommand = null;
function ideCommand() {
    exports.execIdeCommand(this.name);
}

});
@@ -62,16 +62,59 @@
 = true;%0A
+var Vim = require(%22ace/keyboard/vim%22).Vim;%0A
 exports.
@@ -726,12 +726,1119 @@
 ame);%0A%7D%0A
+/**%0A *  require(%5B%22plugins/c9.ide.ace.keymaps/vim/keymap%22%5D, function(vim) %7B%0A *      vim.map(%22J%22, %228j%22, %22normal%22)%0A *      vim.map(%22K%22, %228k%22, %22normal%22)%0A *      vim.map(%22,b%22, %22c9:build%22, %22normal%22)%0A *      vim.map(%22,g%22, %22c9:run%22, %22normal%22)%0A *  %7D);%0A */%0Aexports.map = function(keys, action, context) %7B%0A    if (!action)%0A        return Vim.unmap(keys, context);%0A    var mapping;%0A    if (typeof action == %22function%22) %7B%0A        mapping = %7B%0A            keys: keys,%0A            type: 'action',%0A            action: 'aceCommand',%0A            actionArgs: %7B exec: ideCommand, name: 'gototableft' %7D%0A        %7D;%0A    %7D%0A    if (/%5Ec9:/.test(action)) %7B%0A        var commandName = action.substr(3);%0A        %0A        mapping = %7B%0A            keys: keys,%0A            type: 'action',%0A            action: 'aceCommand',%0A            actionArgs: %7B exec: ideCommand, name: commandName %7D%0A        %7D;%0A    %7D%0A    if (mapping) %7B%0A        if (context)%0A            mapping.context = context;%0A        mapping.user = true;%0A        exports.aceKeyboardHandler.defaultKeymap.unshift(mapping);%0A    %7D else %7B%0A        Vim.map(keys, action, context);%0A    %7D%0A%7D;%0A%0A
 %0A%7D);

fix cursor color in vim mode