Merge pull request #1244 from ajaxorg/cmdLine
VIM mode. Fix count handling for dd yy p P
This commit is contained in:
commit
b5a5d327de
8 changed files with 119 additions and 50 deletions
|
|
@ -92,6 +92,12 @@ var cmdLine = new layout.singleLineEditor(consoleEl);
|
|||
cmdLine.editor = env.editor;
|
||||
env.editor.cmdLine = cmdLine;
|
||||
|
||||
env.editor.showCommandLine = function(val) {
|
||||
this.cmdLine.focus();
|
||||
if (typeof val == "string")
|
||||
this.cmdLine.setValue(val, 1);
|
||||
};
|
||||
|
||||
/**
|
||||
* This demonstrates how you can define commands and bind shortcuts to them.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue