Friday, May 11, 2012

Re: pwd seems to depend on the window

Will do...as soon as I find the circumstances that gave rise to the
problem. It doesn't always seem to exhibit itself.

On May 11, 8:28 pm, "John Beckett" <johnb.beck...@gmail.com> wrote:
> Paul wrote:
> > The newest version of gvim for Windows seems to have
> > different present- working-directories for each window.  Is
> > there anyway to have the old behaviour, where if I do ":cd
> > %:p:h" on one window to get to the containing folder, the pwd
> > will stay in that folder when I switch to another window/buffer?
>
> I don't see a problem. These commands can be used:
>     :cd %:p:h
>     :lcd %:p:h
>
> The first sets Vim's current directory for all windows.
> The second sets it only for the current window.
>
> Check autochdir value:
>     :verbose set autochdir?
>
> If there is a problem, start with
>     gvim -N -u NONE
>
> then work out some simple commands that illustrate a problem,
> and post them and the result.
>
> John

--
You received this message from the "vim_use" 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

No comments: