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

From: Dmitrij D. Czarkoff <czarkoff_AT_gmail.com>
Date: Mon, 15 Sep 2014 15:48:31 +0200

Marc André Tanner said:
> Editor Frontends
> ================
>
> The editor core is written in a library like fashion which should make
> it possible to write multiple frontends with possibly different user
> interfaces/paradigms.
>
> At the moment there exists a barely functional, non-modal nano/sandy
> like interface which was used during early testing. The default interface
> is a vim clone called vis.
>
> The frontend to run is selected based on the executable name.

While I am probably too late to the party, I would suggest to separate
your "vis" into two distinct parts on the same principle as vi and ex:
the should be an ex-like CLI editor accepting commands from stdin and
printing output to stdout, and there should be separate UI that wraps
ex-like CLI, sending commands and parsing output. Such split would make
possible to have static build of ex-like CLI on embedded device and
controling it with local interface over SSH/telnet.

P.S.: there is already a program called "vis" – replacement for "cat -v"
as suggested by Rob Pike and Brian Kernighan.[1] Probably another name
could be chosen. I like "vie" option, although "svi" also appears to be
available (according to OpenBSD ports at least).

[1] http://harmful.cat-v.org/cat-v/unix_prog_design.pdf

-- 
Dmitrij D. Czarkoff
Received on Mon Sep 15 2014 - 15:48:31 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 15 2014 - 16:00:10 CEST