[lug] vi editor

John Starkey jstarkey at advancecreations.com
Fri Oct 27 12:47:03 MDT 2000


Man.. the more I talk.....

Thank you very much for the explanation Archer. 



On Fri, 27 Oct 2000, John Starkey wrote:

> > > I'm negotiating a job which will mainly involve vi and once again BLUG to
> > > the rescue.  <space><space><enter>2x{!}fmt<enter>
> > > 
> > > This is what I rec'd. I don't think I did it correctly.
> > > 
> > > > Place your cursor on the '*' and do:
> > > >
> > > >       d/<space><space><enter>2x{!}fmt<enter>
> > > 
> > > Do this without entering command mode right?? Not sure if it's the correct
> > > term, what I mean is without preceding it with a ":".
> > > 
> > 
> > Yep.  vi has the unique ability to combine deletion commands with
> > cursor movement.  This deletes everything up to two spaces, then
> > deletes 2 characters, then pipes a paragraph through fmt.  I think.
> > I've been an emacs guy for a few years now, after I had a religious
> > experience and saw the error of my ways.  Please don't send the
> > de-programmers over here ;-).  Anyway, my vi is kinda rusty.
> 
> That just kicked my ass. I wanna learn howta do that. I'm so into the
> HOWTO right now trying to figure it out. It's magic isn't it?? You guys
> are all Black Magicians. I'm doomed aren't I??
> 
> Ok. Soooo.
> 
> 
> d/ 			got that part. 
> <space><space> 		on first account it's describing my last 12
> 			months; I see it's also cutting a whole line. Does
> 			this mean cut from <space> to <space>
> {!}			filter everything in the paragraph?
> fmt			a line justifier??
> 
> 
> This is no fair YOU GUYS ARE CRUSHING THE INEVITABLE NIAEVE NEWBIE
> COCKYNESS!!! 
> 
> Show me more. Where do I look to set line formatting for coding using vi.
> Make my JS and HTML look more better :}
> 
> 
> 
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 





More information about the LUG mailing list