Skip to content

Commit ceecc35

Browse files
FreedomKnightFreedomKnight
authored andcommitted
fixed commands hint bugs and add ctrl-[ binding
1 parent 5481515 commit ceecc35

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins-client/ext.vim/cli.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ cliCmds[":"].commands = {
200200
"q!": function() {
201201
cliCmds.q(null, {force: true});
202202
},
203-
tabNext: "gototabright",
204-
tabPrevious: "gototableft",
203+
tabn: "gototabright",
204+
tabp: "gototableft",
205205
tabfirst: function() {
206206
tabbehaviors.cycleTab("first");
207207
},
@@ -225,8 +225,8 @@ cliCmds[":"].commands = {
225225

226226
// aliases
227227
cliCmds[":"].commands.write = cliCmds[":"].commands.w;
228-
cliCmds[":"].commands.tabn = cliCmds[":"].commands.tabNext;
229-
cliCmds[":"].commands.tabp = cliCmds[":"].commands.tabPrevious;
228+
cliCmds[":"].commands.tabNext = cliCmds[":"].commands.tabn;
229+
cliCmds[":"].commands.tabPrevious = cliCmds[":"].commands.tabp;
230230
cliCmds[":"].commands.tabc = cliCmds[":"].commands.tabclose;
231231

232232
cliCmds[":"].commands.set = {
@@ -354,7 +354,7 @@ function endCommandInput(cmdLine) {
354354
exports.initCmdLine = function(cmdLine) {
355355
cmdLine.commands.bindKeys({
356356
"Shift-Return|Ctrl-Return|Alt-Return": function(cmdLine) { cmdLine.insert("\n"); },
357-
"Esc|Shift-Esc": function(cmdLine){
357+
"Esc|Shift-Esc|Ctrl-[": function(cmdLine){
358358
endCommandInput(cmdLine);
359359
},
360360
"Return": function run(cmdLine) {

0 commit comments

Comments
 (0)