On 2 September 2010 15:22, David Salgado wrote: > >> This behavior of changing the pwd is a feature and not a bug. If you >> open a new file (via open panel, by dropping, ...) the pwd is changed >> if the window is "unused". > >> In most cases I think this is what you'd expect, but I can see that it >> is confusing if you use "mvim" specifically to open a new window in a >> certain directory. Not sure what to do about this? (I'm open to >> suggestions.) > > How about testing for "noautochdir" at the point where the code > decides the window is unused? If noautochdir is set, then don't mess > with pwd. That way, users could have a way of disabling this behaviour > if they don't want it, and noautochdir is a fairly intuitive way to > think about turning it off.
Hmmm...no that wouldn't work since "autochdir" is off by default so this would effectively disable this feature. I think I'll leave things as they are; if more people complain about it I'll start thinking about a better solution. (It's only a guess, but I think most people do want the pwd to be set to the first file they open.) 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
