How do I configure Gvim so that the current directory follows the active document? I know I've seen this somewhere in the Vim docs, but none of my searches are turning it up now.
When I'm editing a document in Gvim, I find that Gvim always uses my home directory as the working directory. If I use ":w newname" to save the current file under a new name the new file appears in my home directory rather than the directory of the current file. The same happens if I enter ":split ." to open a new file in my project. I first see my home directory. I have to browse back to my project directory. I would like ":split ." to open the same directory as my active document. I have the same problem with ":make"! I don't have this problem with vim from the command-line because I usually start vim from my project directory so the current working directory is already set. I'm using Gvim 7.0 under Linux Ubuntu 6.10 Yours, Noah
