Problem with autochdir

2 views
Skip to first unread message

Will Duquette

unread,
Nov 21, 2009, 10:20:03 AM11/21/09
to vim_mac
Howdy!

(I've read the page on reporting MacVim bugs.)

If I have the autochdir option set, and invoke MacVim from the
terminal, specifying a relative path, like this:

$ mvim lib/folder/file.txt

then MacVim tells me that the directory doesn't exist, and gives me an
empty buffer with the specified file name.

Once MacVim is running, autochdir works as expected:

$ mvim
: e lib/folder/file.txt

The above works fine.

I've not see this problem with gvim 7.2 on Linux.

björn

unread,
Nov 22, 2009, 7:59:44 AM11/22/09
to vim...@googlegroups.com
Hi Will,

2009/11/21 Will Duquette:


> If I have the autochdir option set, and invoke MacVim from the
> terminal, specifying a relative path, like this:
>
>    $ mvim lib/folder/file.txt
>
> then MacVim tells me that the directory doesn't exist, and gives me an
> empty buffer with the specified file name.
>
> Once MacVim is running, autochdir works as expected:
>
>   $ mvim
>   : e lib/folder/file.txt
>
> The above works fine.

This sounds like an old bug (search the vim_mac archives for a thread
named "mvim on file with path") so I assume you are using the stable
build of MacVim? If so, please update to the latest snapshot and
everything should be ok.

Björn

Will Duquette

unread,
Nov 22, 2009, 7:06:45 PM11/22/09
to vim_mac
Thanks very much!
Reply all
Reply to author
Forward
0 new messages