EDITED.
Is there a way so that vim detects the path of the header files without using relative paths in the source files like #include "../foo.h"
How to set the path
option correctly for the current project folder and how to make a rule for it so that every project with that folder structure can profit?
Are there plugins for it?
I have a multifile c project. int the project folder is one src and one include folder. the src directory contains all .c files, the include folder inhabits all .h files.
project
|_ src
|_ include
example: main.c
#include "..\foo.h"
..
Vim knows about foo.h if the file is within the src folder, but not if it is in the include folder
I have tried setting the path variable in the .vimrc file with no luck. All other includes from usr/include are working fine.
-I ..
argument – Cheatah:h 'path'
– Matt