eagletmt/ghcmod-vim — Issue #3: Incorrect file locs when used on files in subdirs
Author: LeventErkok
Created: 2012-03-02 04:20:10+00:00
State: open

If I start vi like this:

```
vi subdir/test.hs
```
then the cwindow contains error/lint messages referring to the file name as `test.hs`. So far this is perfect behavior.

However, if you press enter on the error/warning message in the cwindow for this file, then `vi` tries to jump to a file named `test.hs` in the *current* directory, as opposed to the one in `subdir`. This leads to `vi` opening a new file in the current directory, instead of going into the correct file.

I suppose a solution could be to put the file-names in the cwindow as relative from the cwd of the vi process. That'd make them show a little longer, but would correctly jump to the right file.