[wellylug] vi / ex question

jfouhy at paradise.net.nz jfouhy at paradise.net.nz
Tue Dec 7 16:14:42 NZDT 2004


Quoting jumbophut <jumbophut at gmail.com>:

> In vim, prefix your command with a line range:
> 
> :a,b/^$/d
> 
> where a,b are the start and end line numbers respectively. You can
> use 1,$ for the whole file.
> 
> (Grant's e-mail gives an even more efficient solution in this case).

I know that ... And I know that % is shorthand for 1,$.  But that doesn't work.
 What you are saying (I think) is: "select the range of lines defined by 1,$/^$/
and then delete them".  It's not clear what that range of lines should be, since
you seem to be breaking syntax, but it's certainly not what I want..

-- 
John.




More information about the wellylug mailing list