Take the 2-minute tour ×  I'm a mac user giving vim a serious
try. Most of the GUI editors I'm used to allow me to open a
directory as a "project" by executing a command like:  edit
~/www/example.com/  The vim equivalent vim ~/www/example.com/
will show me a list of files in the directory, and I can open
them. But it does not set vim's working directory to that path,
I have to run :cd . to set the working directory.  Is there some
way, perhaps with a shell script, to open vim and have it's
working directory set to a given path?  I'm actually using
MacVim, if that makes any difference.  share|improve this
question In directory view just hitting c will cd you into that
directory - doesn't do exactly what you want, but its worth
knowing. –  Michael Anderson May 8 '11 at 23:27 It's ok to
propose answers to your own question. I recommend moving your
work in progress answer out of the question, since it is not
part of the question. There is even a badge you can earn for
answering your own question with a score of 3