Re: Expanding after a :find command
- Just saw your email after my vacation. I have been using the following
command as a substitute for missing completion on :find command. Hope
you find it useful:
command! -nargs=* -bang -complete=custom,<SID>PathComplete FindInPath
\ :find<bang> <args>
function! s:PathComplete(ArgLead, CmdLine, CursorPos)
return UserFileComplete(a:ArgLead, a:CmdLine, a:CursorPos, 1, &path)
Put the above in your vimrc and use :FindInPath command instead of
:find. Of course, you can rename the command to simply :Find, but I
already use that for running the external GNU find command in my
greputils.vim plugin. The UserFileComplete() function can be obtained
from the genutils.vim plugin on vim.sf.net.
On Thu, 9 Dec 2004 at 8:31am, Ron Aaron wrote:
> On Wed, December 8, 2004 14:51, Gary Johnson said:
> > This is in the To Do List, todo.txt:
> > 7 Command line completion for ":find" should search in 'path'.
> > "7" means "as soon as possible" but not necessarily in the next
> > release.
> Ah. That's a bit disappointing. Maybe I'll take a look at making it work.
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.