On Sep 3, 5:12 am, David Salgado <[email protected]> wrote:
> Fair enough.
>
> If I get my autocmd workaround done, I'll post it here.
>
> David
>
> On Sep 2, 2010 8:10 PM, "björn" <[email protected]> wrote:
>
> On 2 September 2010 15:22, David Salgado wrote:
>
>
>
> >> This behavior of changing the pwd is a feature ...
> >> In most cases I think this is what you'd expect, but I can see that it
> >> is confusing if you use...
>
> 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.)

Hi Björn,

There's a long discussion about this issue on this PeepOpen bug
tracker issue: http://github.com/topfunky/PeepOpen-Issues/issues#issue/62

PeepOpen is an external application launched from vim. It offers up a
nice efficient file dialog. Once a file is selected PeepOpen tells
MacVim to open the file, which is where it hits this issue.

For reference, here's how I typically use MacVim in order of
frequency:

1. Open it from the dock, then ":cd <project-root>", then use PeepOpen
to open various files under the project root.
2. Cd into the project directory from the command line then run mvim
(though since this change I now run "mvim .").
3. Open MacVim by clicking or right-clicking on files (typically
source I've downloaded to check out) in Finder.

Here are some suggestions that might help (any of which would solve
this issue for PeepOpen users specifically):

1. Disable the feature as soon as any command is typed into MacVim at
all.
2. Disable the feature if the user launches MacVim via mvim.
3. Add a MacVim-specific option to disable the feature.

Alec

PS. Thanks for your work on MacVim, it is fantastic :)

-- 
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