--- Zheng Da <[EMAIL PROTECTED]> wrote:
> Hello.
> I want to open a file, and I know its name, but don't know the path.
> I want to use the command "find". For example I want to open the file
> space.cc, and use the command :find space.cc. I know the file may be
> in the current directory, or the subdirectories, but always get the
> error E345: Cannot find file "space.cc" in path. I use the default
> path, it should be .,/usr/include,,. (I use Linux).
> So what's the problem? And how to open the file I want?
Hello,
If you prefix '**/' to the filename, Vim should search through subdirectories
for the file:
:edit **/space.cc
:find **/space.cc
Also, if you use <CTRL+D>, Vim will show you a list of matching files:
:find **/space.cc<CTRL+D>
src/space.cc
src/backup/space.cc
regards,
Peter
____________________________________________________
On Yahoo!7
Music: Create your own personalised radio station.
http://au.launch.yahoo.com/