On 3 October 2010 16:17, David <[email protected]> wrote:
>
> I don't think I understand the full scope of this problem. I just know
> the symptoms. I was wondering if this behavior could be turned into a
> variable of some kind? Then we could allow different types of behavior
> in terms of when to set the pwd.

I'd like to try and avoid introducing more options.  What different
types of behavior do you want?

Currently (after the latest patch) it goes like this when you open one
or more files (not using the "mvim" script):

1. If this causes a new window to appear on screen then the working
directory is set to the first file that is being opened (they are
sorted alphabetically because Finder does not "remember" the order in
which you select them).

2. Otherwise (i.e. you have gone into the prefs and set MacVim to open
new files in the "current" window, or you're dragging to a window) the
current directory is not touched.

The old behavior was broken because the pwd would change even if you
had manually gone in and changed it (e.g. via a ":cd .." command).

If you open files using the "mvim" script the working directory is the
same as Terminal's working directory.

If you open a new empty window (e.g. via Cmd+N, or when starting
MacVim) the working directory will be set to your home directory.


Björn

-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to