I ran into a problem when using the quickfix feature of vim. When I open up my source file in vim, a buffer of that file is created, and its name is shown on the status bar, let's say main.cpp
.
Then I compile it with :make
and jump to next error with quickfix. Because the error message my compiler outputs is always absolute path, e.g. c:\folder1\folder2\main.cpp
. If I jump to that error location, then a new buffer of the same file will be opened, but with the absolute path filename.
Then when I edit either of them and save it, the other buffer won't get updated and that's really annoying. I tried set autoread
but it doesn't help at all. Do you guys have any suggestions? Thanks a lot!
EDIT: I am running vim on windows.