[CLUE-Tech] vim's join command on large documents answer

Kevin Cullis kevincu at orci.com
Wed May 8 22:35:08 MDT 2002


OK folks,

I've come up with an answer on using vim's join command on large
documents, but it's rather funky. With a document of paragraphs with
open lines in between each paragraph I have to use the below command a
number of times to get it just right:

:g/[.,a-z]$/j

It sort of works every third try and I have to do it a number of times
to get a good finished product.  While it works, why the number of times
versus just once on the whole document?

Kevin




More information about the clue-tech mailing list