My vim has path settings as shown below.
path=.,/usr/include,,
I think this is the default value for the "path". I guess.
Because of this, g f opens c header files under the cursor.
But in the C ++ file, the C ++ header files do not open because the location of the C ++ header file is not added to the path vim variable.
set path+=/usr/include/c++/4.6
I think this setup on vimrc will be the solution. But the problem is that the actual directory location for the C ++ header file will be changed in every other Linux distribution and in g ++ compiler versions.
How to set the path for C ++ header files in a portable way?
c ++ include vim path
Jeonghum
source share