Dominique Pelle wrote:

> Attached patch fixes the following item in in ":help todo":
> 
> ===========================================================
> ":e ~br<Tab>" does not complete to ":e /home/bram/".  Would need to use
> getpwent() to find all the matches.
> ===========================================================
> 
> Here are 2 examples, assuming that /etc/passwd contains 3 users
> names: bill, bob, bram:
> 
> Example #1:  completion in Ex command
> 
>   :e ~b<Tab>
>   ... possible completions:  bob  bill  bram
> 
>   :e ~bi<Tab>
>   ... completes to  :e ~bill
> 
>   :e ~bill<Tab>
>   ... substitute home path   :e /home/bill/   (as before patch)
> 
> 
> Example #2:  user completion in :command
> 
>    :command! -nargs=* -complete=users Foo
> 
>    :Foo b<Tab>
>    ... possible completions:  bob bill bram
> 
> It is implemented for systems supporting getpwent().
> configure script checks whether getpwent() is available.
> I only tested it on Linux.

Sounds good.  I'll add it to the todo list.

-- 
A computer program does what you tell it to do, not what you want it to do.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Reply via email to