[CLUE-Tech] vim's join command on large documents answer
Kevin Cullis
kevincu at orci.com
Thu May 9 00:28:34 MDT 2002
Jeff,
Oh, I agree that an html2text converter would be beneficial, but I'm
trying to use the tools that I have at the moment to become more of an
expert (the world needs more spurts ;-) )
One thing that this issue has pointed out is that sometimes the simpler
tools are better for simple tasks and that you don't need a backhoe when
a shovel will do. Besides, I'm trying to work on my REGEX skills.
Anyway, I'll be looking at the other tools as I learn more, but thanks
for the suggestion.
Kevin
Jeffery Cann wrote:
>
> On Wednesday 08 May 2002 10:35 pm, Kevin Cullis wrote:
> > 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?
>
> Hmm.
>
> Sounds like you need an html2txt script / program There are only about 4
> million HTML to TEXT converter scripts out there. Many feature reformatting
> as you are trying to do within vim. Do a google search on 'html2txt'.
>
> A good html2txt program probably will work better for you. Unless you want
> to write a vim macro script.
More information about the clue-tech
mailing list