On Sun, Sep 16, 2007 at 02:39:10PM +0200, Bram Moolenaar wrote:
> 
> 
> Ed Peschko wrote:
> 
> > I know it's been discussed before, but how easy would it be to make:
> > 
> >     1. uniq (and other commonly used %! commands to sort input) native 
> >            to vim.
> 
> Use the built-in ":sort" command with the "u" flag.

cool... although I did look for this in the docs, and didn't find any... 
are there any on the built-in flags besides 'u' to sort 
(like say 'uc' for uniq+count, or 'ud' for uniq+duplicated)? 

> 
> >     2. vim take a list of files as an input (ie: vim -l filelist)
> 
> It's a bit more typing, but you can do it:
> 
>       vim '+n `=readfile("/tmp/filelist")`'

ok, that works, but as:

        gvim "+n `=readfile('aha')`" 

due to braindead cmd pathing. I'm having a bit of trouble parsing how this 
works though.. I don't see anything in the gvim usage page about '+n' as an
argument (or any other '+<char>' arguments). What I do see is:

        +       Start at end of file
        +<lnum> Start at line <lnum>


Is this sending the results of an 'ed' command back to gvim, or ??? 


Anyways, both seem to work, so I'm happy, but again, I'm a bit uneasy on
using the second because I don't know how it's working (and hence probably
don't know a whole swathe of functionality in how vim itself works)

Ed


> Advice to worms:  Sleep late.
> 
>  /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\        download, build and distribute -- http://www.A-A-P.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
> 
> > 

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

Raspunde prin e-mail lui