I am using Vim to edit Fortran 90 code. The code is structured in the following manner:
./srcs- contains main code file
./libs- contains some module file
If I open the main file in Vim and then find some interesting function and press
gD Vim cannot find this function since it does not know where to search. If I copy all the source files to one folder this option does work.
My questions are:
- How do I tell Vim where my code is?
- Can you suggest for a quick manner on how to work with this kind of folder without repeating the use of solution (1)?
Other tips and or suggestions of working with Vim to edit Fortran projects will be very much appreciated.