If I open a file that isn't in the current directly, when I used Vim to autocomplete a filename, Vim provides files relative to the location where I launched Vim, not the currently edited file.
Example
$ find .
nice-file.xml
xml/
messy-file.xml
ok-file.xml
$ vim xml/messy-file.xml
Now if I type Ctrl+x,Ctrl+f, Vim provides "nice-file.xml" as a complete option. It doesn't offer ok-file.xml, even though it's in the same directory as the file I'm currently editing.
I'd like Vim to complete filenames relative to whatever file I'm editing. Is that possible?
gfmapping. I would suggest overriding something likegsor maybe using a<leader>mapping – Peter Rincker Jul 28 '16 at 18:13acdit better be fixed. But that BufEnter workaround shouldn't be neccessary anymore – Christian Brabandt Jul 28 '16 at 19:06autochdirwas exactly what I was looking for. It doesn't seem to be conflicting at all with my modest plugin selection. – Scribblemacher Jul 29 '16 at 11:27