orz. I'm not familiar with ace editor, but I checked the api document, the
splitLine is same as insert ("\n").
2014年5月27日 上午7:24于 "Harutyun Amirjanyan" <notifications@github.com>写道：

> In app/js/editor.js:
>
> > @@ -952,6 +952,24 @@ define(function(require, exports, module) {
> >                  whitespace.convertIndentation(edit.session);
> >              }
> >          });
> > +
> > +
> > +        command.define("Edit:Insert New Line Down", {
> > +            doc: "Insert a new line down current line",
> > +            exec: function(editor) {
> > +                editor.navigateLineEnd();
> > +                editor.insert("\n");
> > +            }
> > +        });
> > +
> > +        command.define("Edit:Insert New Line Up", {
> > +            doc: "Insert a new line up current line",
> > +            exec: function(editor) {
> > +                editor.navigateLineStart();
> > +                editor.insert("\n");
>
> I think splitLine was better in this function.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zedapp/zed/pull/371/files#r13058706>
> .
>