When editing a directory with mvim /path/to/dir, cd to it.