From: joshi@sal.cs.uiuc.edu (Anil Joshi)
Subject: Re: Unix editors w/features for dealing with columnar data?
Date: 1995/05/15 [thread overview]
Message-ID: <3p81ei$8p8@vixen.cso.uiuc.edu> (raw)
In-Reply-To: 3omgh1$m9p@godzilla.zeta.org.au
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
next prev parent reply other threads:[~1995-05-15 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 ` Barbara Vaughan
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
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 [this message]
1995-05-03 4:00 ` Peter da Silva
1995-05-03 4:00 ` VITAL
1995-05-09 4:00 ` Harris Revankar
1995-05-09 4:00 ` Benjamin T. Sugimori
1995-05-09 4:00 ` Benjamin T. Sugimori
1995-05-09 4:00 ` Harris Revankar
1995-05-09 4:00 ` Benjamin T. Sugimori
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