Today (Tue, 30 May 2006), Baha-Eddine MOKADEM wrote:

> I would like to to delete line from L1 to L2, I try to script that
> but obviously commands are different for a script.  What is the
> right thing to do ?

The easiest way to do it is with the :delete command (see ":help
:delete").  For example:

 :4,8delete

This would delete lines four through eight.

However, I suspect your script has the start and end lines stored in
variables, which necessitates using :execute (see ":help :execute").
For example, using L1 and L2 as variable names:

 :execute L1 . "," . L2 . "delete"


- Christian

-- 
             If your work speaks for itself, don't interrupt.             
Christian J. Robinson <[EMAIL PROTECTED]> http://infynity.spodzone.com/
   PGP keys: 0x893B0EAF / 0xFB698360   http://infynity.spodzone.com/pgp   

Reply via email to