Hi

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.

Regards
-- Dominique

-- 
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

Attachment: complete-users-7.3.618.patch
Description: Binary data

Reply via email to