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.
$ 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?