I recently re-bumped up against this problem enough that I decided to take a 
wack of time trying to track it down again.  Bascially, some buffers cause an 
automatic change of the pwd to the parent folder.  Even if I do

   :bufdo pwd

I get the same 20 odd answers for one window, but when I change windows, I get 
the same 20 odd answers that are different from the first 20 answers.  I still 
haven't figured out what triggers it, but it doesn't happen all the time.  Once 
the problem starts, however, the behaviour sticks and the condition seems to be 
captured in a mksession file.  So if I fire up a new gvim, I can source the 
session file and the offending behaviour comes along with it.  If I simply open 
a new gvim and revisit all the files I had on my buffer list, I don't see the 
behaviour come, at least not right away.

I tried to find an autochdir or a "cd %:p:h" command in the relevant files.  
Basically, I went to the directory containing _vimrc and vimfiles/ and issued 
the bash command for searching:

   grep -i -w -r -e autochdir -e acd -e '%:p:h' \
      *vim* ~/tmp/session.vim

The only lines that came up are commands for setting the Windows titlestring 
and iconstring:

   _vimrc:set titlestring=v:%t%(\ %M%)%(\ (%{expand(\"%:p:h:s+.*/++\")})%)%(\ 
%a%)

   _vimrc:set iconstring=v:%t%(\ %M%)%(\ (%{expand(\"%:p:h:s+.*/++\")})%)%(\ 
%a%)

These also show up in my session.vim and _viminfo.

Thanks to anyone who can suggest another way to deal with this.

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to