Re: [dev] [RFC] Design of a vim like text editor

From: Marc André Tanner <mat_AT_brain-dump.org>
Date: Sun, 14 Sep 2014 11:32:10 +0200

On Sat, Sep 13, 2014 at 04:58:35PM +0200, FRIGN wrote:
> I have got one question though: When you are talking about Unicode-awareness,
> are you talking about UTF-8 or more complex sets?

Just UTF-8. The internals asume it in some cases to move from one character
to the next.

> > It is possible to open multiple windows via the :split/:vsplit/:open
> > commands or by passing multiple files on the command line.
> >
> > In principle it would be nice to follow a similar client/server approach
> > as sam/samterm i.e. having the main editor as a server and each window
> > as a separate client process with communication over a unix domain socket.
> >
> > That way window management would be taken care of by dwm or dvtm and the
> > different client processes would still share common cut/paste registers
> > etc.
> >
> > However at the moment I don't want to open that can of worms and instead
> > settled for a single process architecture.
>
> Going with named pipes or sockets would be the better approach.

It can always be reconsidered later on. For now I want to keep it simple and
fix the other issues. My experience with abduco, which implements such a
client / server architecture, showed that it is not completely trivial.

> Playing around with it I noticed that "dd" doesn't work in the last line
> and sometimes mixes up things.
> Write a document with "ee"'s in each line. Then do a dd. The last line
> won't get deleted and sometimes, a line is removed, but leaves a single "e"
> as a trace.

This should now be fixed, however due to the way new lines are handled
the cursor is not moved a line up.

-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
Received on Sun Sep 14 2014 - 11:32:10 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 14 2014 - 11:36:07 CEST