On Sun 16-Sep-07 12:48am -0600, Ed S. Peschko wrote:

> As for the options in question, there is a precedent - sort is implemented
> in vim already. I can count on one hand the programs that I regularly use
> inside of the buffer, and 'uniq' is one.. 'sort' ing, and then 'uniq' ing to 
> get
> a count of uniq files is a very common metaphor.

I agree with your comments on Cygwin.  It may be great for
those coming from a unix environment who need training
wheels - but for those of us working on Windows systems,
it's just an inconvenience.

I use 4nt - it's not free.  Among its many many features, it
can deal with files for just about anywhere - include http
pages and ftp sites.  For example, I can update my runtime
files from the vim ftp site with something like:

    copy /u /s %vim_ftp_address %my_local

Back to your 'uniq' request.  If it really bothers you to
add the %! in front of uniq, use vimscript to write
something more to your liking.  The sort followed by uniq
metaphor you mention is simple:

    sort | %!uniq -c

A common metaphor I use adds sorting the counts in reverse
order.  This does not work:

    sort | %!uniq -c | sort! n

If you're running into that problem, a solution is:

    sort | exe '%!uniq -c' | sort! n

-- 
Best regards,
Bill


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

Raspunde prin e-mail lui