On 2010-08-04, Michael Williams wrote:
> Is it possible to configure vim so that hitting tab when doing,
> e.g. :edit or :split searches the directories specified in the vim
> path variable.
> 
> For example, I have a directory ~/foo/, containing a file bar. I add ~/
> foo/ in my vim path with the * so vim searches recursively down:
> 
>   path=.,/usr/include,,,~/foo/**
> 
> If I then do :find bar, vim correctly finds the file. However, if I
> do :edit ba[TAB], vim does not expand it to bar (which is obviously a
> problem if I'm looking for
> very_long_filename_i_dont_remember_the_full_name_of).
> 
> Is there any way to get this behaviour?

Yes.  By using the :find command.  That's what it's for:  "Find
{file} in 'path' and then :edit it."  Instead of :split, use :sfind.

Regards,
Gary

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