vim question
Richard Foley
Richard.Foley at rfi.net
Fri Mar 28 07:48:37 GMT 2008
On Thursday 27 March 2008 15:11:07 Rafael Garcia-Suarez wrote:
> On 27/03/2008, Abigail <abigail at abigail.be> wrote:
> > Since all but two ':'s have to be changed, I would use:
> >
> > 2G:s/:/ /g<CR>0f r:;.
> >
> > That requires the least thinking for me. And uses only commands that are
> > there in 'vi' as well.
>
> Is there anything like 'vi golf' ?
>
> :2s/:/ /g<CR>0f r:;.
>
> (one less keystroke)
>
There is now ;-)
--
Richard Foley
Ciao - shorter than aufwiedersehen
http://www.rfi.net/
More information about the london.pm
mailing list