On Monday 30 September 2002 03:22 am, Andre Poenitz wrote:
> On Mon, Sep 30, 2002 at 09:07:36AM +0200, chamanga wrote:
> > Thank you for your kind reply and for your help.
> >
> > But here is still the problem: I have 15,000 such entries with dashes.
> > How can I automatically replace all of them with one command? Doing them
> > one by one is,  needless to say, going to take a lot of time and I risk
> > to miss a few. Any suggestions?
>
> You a text editor on you LyX file (after making a backup!) As you need to
> insert the ERT "environment" this may not be trivial.
>
> :%s/-renga/<CR>
>
> \\begin_inset ERT<CR>
> status Open<CR>
> <CR>
> \\layout Standard<CR>
> <CR>
> \\backslash<CR>
> mbox{-renga}<CR>
> \\end_inset<CR>/g
>
> [all in one line, <C-V><C-M> instead of the <CR>, in vi may do the trick]
>
> And _please_ quote only the parts of the message you are responding to.
>
> Andre'

In my work with Vim, inserting a newline has been accomplished with \r in the 
replace string.

Steve

-- 
_____________________________________________________________
Steve Litt
Author: 
  * Universal Troubleshooting Process courseware
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
http://www.troubleshooters.com

Troubleshooters.Com Webmaster 
(Legal Disclaimer) Follow these suggestions at your own risk.
-------------------------------------------------------------



Reply via email to