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 closed vim and came again. But in script, it doesn't show. Only when I give the path in script, I am Able to use.? – nobe4 Apr 21 '16 at 10:41:verbose set path?will show you what is the last file that changed the path variable. Might be some system configuration file. – tokoyami Apr 21 '16 at 10:43~/.vim/after/ftplugin.vimand put your path changes there. This file will get loaded after the system one. I'm pretty sure there is a better way of using the after directory for this but I cannot remember at the moment. – tokoyami Apr 21 '16 at 11:22