I'm writing a library which is organized into two parallel and fairly deep src/ and include/ directories which contain my .cpp and .h files respectively. My favorite editor is vim, but I have yet to find a good way to quickly switch between source and header files quickly. For example, I may find myself editing
~/workspace/myproject/include/myproject/core/utils/coolutil.h
and decide I now need to make a small change to
~/workspace/myproject/src/myproject/core/utils/coolutil.cpp.
Is there a convenient and ergonomic way to handle such switches quickly in (g)vim? My current approach is to keep two NERDTrees open, one for src/ and one for include/, though I feel like there must be a less cumbersome approach.