[vim] add ctrl+x ctrl+a

This commit is contained in:
nightwing 2012-11-30 22:25:01 +04:00
commit 989f318d87

View file

@ -288,7 +288,17 @@ var actions = exports.actions = {
if (previous) // If there is a previous action
inputBuffer.exec(editor, previous.action, previous.param);
}
}
},
"ctrl-x": {
fn: function(editor, range, count, param) {
editor.modifyNumber(-(count || 1));
}
},
"ctrl-a": {
fn: function(editor, range, count, param) {
editor.modifyNumber(count || 1);
}
},
};
var inputBuffer = exports.inputBuffer = {