Humor: Cargo Cult Programming

Kevin D. Clark kclark at CetaceanNetworks.com
Thu Nov 14 17:59:30 EST 2002


Derek Martin <gnhlug at sophic.org> writes:

> > Let's say that I have the following LaTeX code:
> > (note:  the #'s here are complete garbage)
> 
> > Suppose I decide that this looks horrible, and I want to clean this
> > up.  In Emacs I can type a few keys and transmorgify things thusly:
> 
> > Out of curiosity, does VIM do anything like this?
> 
> sure.  :%s/ &/^I&/  (or some similar command for different cases).  Vi
> does that too.

That's not exactly what I want.  I want the ampersands to line up, no
matter how much stuff is between the ampersands.  I don't care about
tab stops, I just want the ampersands to line up.

Thanks,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




More information about the gnhlug-discuss mailing list