On Sat, 19 Jul 2008, Steve Litt wrote:

My only suggestion would be to use one of the programming tools rather
than do your replacement in Vim. Awk, sed, perl - It would allow you to
gradually build up some regexps through trial and error.

Alan

The RTF code is too wierd and complex to do programatically (what you get is what you mean). I need to do it a little at a time, interactively (what you see is what you get).

I agree with Alan... if you use a one or more separate scripts that you apply, it's easy for you to do the changes separately. And more importantly, start over in case you later in the process discover a problem with the sequence of regexp-replacements you've used.

What if you prototype/test out the regexps in vim, and then move them to a script? (The script would perform a sequence of regexp replacements on the document).

I'd never do all the regexp-replacements manually, too much risk of making a mistake somewhere in the middle and having to redo everything manually...

regards
/Christian

--
Christian Ridderström, +46-8-768 39 44            http://www.md.kth.se/~chr

Reply via email to