I have a linux machine that I use for building my project (c++/make). I have the project directory mounted on my mac machine in which I do the editing using macvim.
I managed to set the makeprg
setting so that :make
will issue a remote compilation on my linux machine. However, I would also like to use vim's quickfix feature. The only problem I have is that the filepaths don't match up.
e.g. on the remote machine, the source and makefile resides in ~/repos/myproject
which in my mac is mounted to /net/mylinuxmachine/home/myuser/repos/myproject
. This results in vim not correctly opening the affected file in case of a compilation error there.
I've set my makeprg
like this:
:set makeprg=ssh\ mylinuxmachine\ \"make\ -C\ repos/myproject\"
Is there anything I can do to make this work?
thanks in advance!