Rudy Moore wrote:
> Basically, I write patent claims which have a very formal 
> phrasing requirement - they're practically code.  Technical 
> phrases are repeated throughout the claims (and also in the 
> specification).  I'd like to be able to identify those 
> phrases, find where they are defined and also find them in 
> the original document.
> 
> Is there a system in vim that already locates repeated 
> phrases?  Or does word analysis on phrases?  Even something 
> as simple as a word count, but generalized to phrases would
> be useful.

It's not really clear what you need (are the phrases always the same, or
different per document, etc). However some suggestions.

I have become quite fond of this script. You could select a phrase and
type a few keys to have it highlighted in some colour. You can search
for all highlighted stuff.
http://vim.wikia.com/wiki/Highlight_multiple_words

For phrase count, you need code like:

%s/What I'm looking for//gn

which will tell you the number of hits but will not change anything.

John


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

Reply via email to