A useful trick in Vim to return the number of matched expressions in a file;
let x=0 | g/regexp/let x=x+1
echo x
where regexp obviously is the regular expression (pattern) you wish to count.
Explore posts in the same categories: Technical
This entry was posted
on Wednesday, May 23rd, 2007 at 2:21 pm and is filed under Technical.
You can subscribe via RSS 2.0 feed to this post's comments.
You can comment below, or link to this permanent URL from your own site.
Your comments will appear immediately, but I reserve the right to delete innapropriate comments.
August 5th, 2007 at 2:02 am
Hola mardena!
falikotrepat
August 6th, 2007 at 7:21 pm
Interesting article!
Where can I find more on this theme?