On Jul 25, 2011, at 9:18 AM, Albie Janse van Rensburg wrote:
> Just for reference, this following command will return a list of matches too
> (the regex can probably be improved):
>
> :%s/\<.\{-}\>//gn | set nohlsearch
>
> ... a "search and replace" command that only counts all matches (and does no
> replacing). Of course, it clobbers your search register, etc, so it's
> probably not the solution you wanted.
>
> I just thought you might want to know about :%s/...//gn
Thanks, Albie. I'll check it out.
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
[email protected]
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php