Skip to main content
added 5 characters in body
Source Link
nobe4
  • 16.3k
  • 4
  • 50
  • 83

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without needing to know the path or greping every time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without needing to know the path or greping every time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. 

So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without needing to know the path or greping every time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid

Minor formating improvement + retag
Source Link
statox
  • 50.6k
  • 19
  • 153
  • 231

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib/project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without needneeding to know the path or greping eveyevery time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/**set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid/home/userid

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without need to know the path or greping evey time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without needing to know the path or greping every time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid

more info
Source Link
SibiCoder
  • 3.5k
  • 5
  • 21
  • 40

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without need to know the path or greping evey time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without need to know the path or greping evey time. There are more than 100 such files.

I am using perl.

When I press gf while having the cursor on Testcase, it shows

E447: Can't find file "Testcase.pm" in path. So I added that path.

It works for files under particular path which are set in :set path. I have several libraries under subdirectories of lib folder. /project/tester/userid/SCOPE/infra/lib is the path.

But when I give all the paths, gf is able to find it. Is there a way to include all subdirectories of a path recursively or making it work for all subdirectories even with the given path?

This will help me to go to any library file without need to know the path or greping evey time. There are more than 100 such files.

EDIT: Setting like set path=$PROJ/lib/** doesn't work in .vimrc and plugins too. But when I give this command in current script file, it works. My .vimrc is under /home/userid

deleted 16 characters in body; edited title
Source Link
nobe4
  • 16.3k
  • 4
  • 50
  • 83
Loading
Source Link
SibiCoder
  • 3.5k
  • 5
  • 21
  • 40
Loading