[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] deleting blank lines over a range
From: |
lists-vile |
Subject: |
Re: [vile] deleting blank lines over a range |
Date: |
Wed, 11 May 2011 12:41:15 -0400 |
User-agent: |
Mutt/1.4.2.3i |
It would be preferable if force-blank-lines, or something like it, operated
over a range, motion command or region.
Or a more general solution would be to allow the g or v command to operate
over a range: :<range>g/^$/d
On Thu, Apr 28, 2011 at 04:37:14PM -0400, Thomas Dickey wrote:
> On Thu, 28 Apr 2011, Paul Fox wrote:
>
> >address@hidden wrote:
> >> I see that the v and g commands only operate over the entire file and I
> >can
> >> use deblank for individual lines but is there a way to delete empty
> >lines as
> >> specified via a range or the selection?
> >
> >i don't believe so. i've wanted that a few times myself. the closest
> >you can get is, do it once, then hold the '.' key down. :-)
> >
> >that command came pretty much directly from uemacs, and has never
> >been converted or offered in an operator form.
>
> Offhand, I'm curious what a pure-vi syntax might be to delete blank lines
> in a range (since that would make a pattern prompt somewhere in the
> command).
>
> I see "forceblank" is what "deblank" used to be.
>
> --
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net
- Re: [vile] deleting blank lines over a range,
lists-vile <=