From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107393,62951c700994df34 X-Google-Attributes: gid107393,public X-Google-Thread: 10b05a,eebc048575b82884 X-Google-Attributes: gid10b05a,public X-Google-Thread: fee84,62951c700994df34 X-Google-Attributes: gidfee84,public X-Google-Thread: f9400,62951c700994df34 X-Google-Attributes: gidf9400,public From: joshi@sal.cs.uiuc.edu (Anil Joshi) Subject: Re: Unix editors w/features for dealing with columnar data? Date: 1995/05/15 Message-ID: <3p81ei$8p8@vixen.cso.uiuc.edu>#1/1 X-Deja-AN: 102710965 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> <3omgh1$m9p@godzilla.zeta.org.au> organization: University of Illinois at Urbana newsgroups: comp.editors,comp.os.ultrix,comp.unix.osf.osf1,alt.lang.s-lang elephant@zeta.org.au (Jason King) writes: > ok (he said sheepishly) so i misread 'x'clude as 'in'clude .. what is 'x'clude > anyway .. and i'll tell you how to do it in vi Here is an example for xcluded lines (and no - it can't be done very easily in vi) Say my file looks like the following - int main() { int i; int j; int a[1000]; for (i=0;i<1000;i++) { a[i] = 0.0; j++; } } I can do several of the following - 1. x all word i gives int main() { .................................. 1 line excluded int j; int a[1000]; .................................. 2 lines excluded j++; } } 2. find all a will pop all those lines which have a back into view thusly int main() { .................................. 1 line excluded int j; int a[1000]; .................................. 1 lines excluded a[i] = 0.0; j++; } } 3. One can limit find and replace operations only on the unexcluded lines etc. 4. Reverse excluded-unexculded lines 5. Show commands work with the indentations - you can unfold things like if-then-else blocks etc. > as for line masking .. this can be done with key mapping .. although obviously > not as conveniently as ISPFs mask utility .. i like that and it should be > in vi .. anyway .. i admit inadequacies for you usage .. but still tell me what > xcluding lines is all about .. doesn't sound too tricky I think it can't be done in vi - may be parts of it but not the whole thingy... >-- > jason -- elephant@zeta.org.au -- IRC: elephant -- PGP Key Available Anil -- Sathsangatve nissangatvam From good company to no company Nissangatve nirmohatvam From no company to lack of desire Nirmohatve nischalatatvam From lack of desire to concentration of mind Nischalatatve jeevanmuktihi From concentration of mind to liberation of life