[wellylug] Vim Tips
Tony Booth
Tony.Booth at treasury.govt.nz
Tue Sep 9 14:02:40 NZST 2003
First, save your doc -- I wouldn't want you to lose anything.
Then try this:
:%s:\<OTAGO\>:&:g
It's probably case-sensitive -- I don't know for sure.
Maybe ':help count-items' will be useful too?
Cheers
Tony
-----Original Message-----
From: Brenda Wallace [mailto:brenda at wallace.net.nz]
Sent: Tuesday, 9 September 2003 1:48 p.m.
To: welly Lug
Subject: Re: [wellylug] Vim Tips
can a vim guru here tell me how to count the number of instances of a
word in a document? eg, how many times "OTAGO" appears in the current
file.
On Tue, 2003-09-09 at 13:43, Grant McLean wrote:
> Further to Brenda's email, I though I'd share some of my Vim usage
> tips. Please pitch in your favourites...
>
>
> Searching:
--
Brenda Wallace
DDI +64 4 916 7213
Catalyst IT, P O Box 11053, Manners Street
Level 2, 150-154 Willis Street, Wellington
--
Wellington Linux Users Group Mailing List: wellylug at lists.naos.co.nz To
Leave: http://lists.naos.co.nz/mailman/listinfo/wellylug
More information about the wellylug
mailing list