From: davis@space.mit.edu
Subject: Re: Unix editors w/features for dealing with columnar data?
Date: 1995/05/04 [thread overview]
Message-ID: <3obgpv$ct7@senator-bedfellow.MIT.EDU> (raw)
In-Reply-To: 3ob8o3$b7v@vixen.cso.uiuc.edu
In article <3ob8o3$b7v@vixen.cso.uiuc.edu>, joshi@sal.cs.uiuc.edu (Anil Joshi) writes:
: elephant@zeta.org.au (Jason King) writes:
:
: Mask lines are something like this.
:
: I set a mask line as follows:
:
: mask /* */
:
: Then every time I insert a new line the line gets initalized to the currently
: active mask line, i.e. say I "o"pen 5 new lines then I will get
:
: /* */
: /* */
: /* */
: /* */
: /* */
[ I realize that everyone has their own editing style and that one cannot
objectively say that one is better than the other. However, I just
wanted to point out that what seems implied by your example can be done
easily in other Unix editors. ]
In JED any line can be a mask line as you have defined. JED includes an
extremely useful function called `double_line' that can be bound to a key.
I bind it to `Ctrl-K Ctrl-L'. As its name suggests, it doubles or
duplicates the current line. So, if I wanted to create a bunch of lines,
say 6 of your example above, I enter the line once (as you must) then press
`ESC 5 Ctrl-K Ctrl-L'. This duplicates the current line 5 times (making a
total of 6).
: I can also overlay lines one on top of another. This will aid in
: writing comments in a separate file and overlaying those lines on the
: source, for example.
Is this really useful? Is the overlay smart enough to watch out for code
that crosses the (hidden) boundary into where the comment overlays itself?
Perhaps it is not a good example because I see no reason to put comments in
a file separate from the source.
--John
next prev parent reply other threads:[~1995-05-04 4:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-04-28 4:00 Unix editors w/features for dealing with columnar data? Charles F Randall
1995-04-28 4:00 ` Larry Felawka
1995-04-30 4:00 ` Jerry Leslie
1995-05-01 4:00 ` Jon Leech
1995-05-02 4:00 ` Jerry Leslie
1995-05-12 4:00 ` Jason King
1995-05-04 4:00 ` Jason King
1995-05-04 4:00 ` Jerry Leslie
1995-05-01 4:00 ` davis
1995-05-01 4:00 ` Anil Joshi
1995-05-04 4:00 ` Jason King
1995-05-04 4:00 ` Anil Joshi
1995-05-04 4:00 ` davis [this message]
1995-05-04 4:00 ` Anil Joshi
1995-05-08 4:00 ` Jason King
1995-05-09 4:00 ` Jason King
1995-05-15 4:00 ` Anil Joshi
1995-05-01 4:00 ` Barbara Vaughan
1995-05-03 4:00 ` VITAL
1995-05-09 4:00 ` Benjamin T. Sugimori
1995-05-09 4:00 ` Harris Revankar
1995-05-09 4:00 ` Benjamin T. Sugimori
1995-05-09 4:00 ` Harris Revankar
1995-05-09 4:00 ` Benjamin T. Sugimori
1995-05-03 4:00 ` Peter da Silva
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox