[CLUE-Tech] vim question: doing a large document using join

Keith Hellman kehellman at yahoo.com
Tue May 7 11:31:31 MDT 2002


The just for the sake of clarity, it the 'gq' part thats important.

Do a :help gq in vim to get more info

--- "Todd A. Gibson" <tgibson at augustcouncil.com> wrote:
> > how do i do this without doing a join on each paragraph?  i'd like to
> > have one command to join the whole document at once.  while i could
> use
> > sed or awk, sometimes i don't need sed and vim is good enough. is this
> > possible?
> 
> Go to the first line of the paragraph and type the following:
> 0dwV}gq
> 
> Does that do what you want?  It only does one paragraph and not the
> entire file.
> 
> -TAG
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech


=====
Keith E. Hellman
kehellman at yahoo.com

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com



More information about the clue-tech mailing list