From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9400,62951c700994df34 X-Google-Attributes: gidf9400,public X-Google-Thread: 107393,62951c700994df34 X-Google-Attributes: gid107393,public X-Google-Thread: fee84,62951c700994df34 X-Google-Attributes: gidfee84,public X-Google-Thread: 10b05a,eebc048575b82884 X-Google-Attributes: gid10b05a,public From: davis@space.mit.edu Subject: Re: Unix editors w/features for dealing with columnar data? Date: 1995/05/04 Message-ID: <3obgpv$ct7@senator-bedfellow.MIT.EDU>#1/1 X-Deja-AN: 101999084 distribution: inet references: <3nr6nl$cak@news.iastate.edu> <3o33l5$l91@senator-bedfellow.MIT.EDU> <3o3fjv$ens@vixen.cso.uiuc.edu> <3o8cb0$ft0@godzilla.zeta.org.au> <3ob8o3$b7v@vixen.cso.uiuc.edu> organization: Center for Space Research reply-to: davis@space.mit.edu newsgroups: comp.editors,comp.os.ultrix,comp.unix.osf.osf1,alt.lang.s-lang 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