[CLUE-Tech] vi macro question
Lynn Danielson
lynn.danielson at clue.denver.co.us
Thu May 3 11:39:34 MDT 2001
Jeffery Cann wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wednesday 02 May 2001 11:28, Phil North wrote:
> If the previously line is marked (ma) and the current line is
> > marked (mb), then from the vi command line do
> >
> >:'a,'b d
>
> You probably do not have to make the second mark. Suppose you are deleting
> from mark 'a' to line 123:
>
> :'a, 123 d
I thought I had tried this and it didn't work, but I must have been
using a back tick instead of a single quote (apostrophe).
:'a,.d
does what I want -- delete from mark "a" to the current line.
Thanks to everyone for the help.
Lynn
More information about the clue-tech
mailing list