> Thanks.  This is a neat script.  Now all I need to do is to write
> something to identify phrases and then apply the script...

Tangentially, if you want to find repeated phrases in your 
document, you can use the following hack:

:match Debug 
/\<\(\w\+\)\_W\+\(\w\+\)\_W\+\(\w\+\)\ze\>\_.\{-}\<\1\_W\+\2\_W\+\3\>/

that should be

   :match Debug /<big long pattern>/

It looks for any sequence of 3 consecutive words that appears 
more than once in the documents and highlights the 1st 
instance(s) with the coloring used for "Debug".

It can be tweaked for longer or shorter patterns, but I wouldn't 
recommend dropping below 3 words or you'll get lots of hits. 
Just follow the pattern of

  \(\w\+\)\_W\+   .... \1\_W\+

The regexp might be a bit intense on resources as your file grows 
larger, but you could turn it on/off as needed.

-tim





--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to