Sunday, June 10, 2012

Re: Does autochdir work when switching tab?

On Sunday, June 10, 2012 10:23:14 PM UTC-5, oversky wrote:
> Sorry, I have wrong description.
> I use gVim Portable v.7.3 form http://bit.ly/LLXqEK.
> After using vim to open the first file,
> then I use the following command to open the second file in a new tab
> of the existing vim editor.
> GVimPortable.exe --remote-tab-silent filename
> The pwd command shows that the second tab still use the directory of
> the first tab.
> After switching to the first tab and then switching back,
> pwd shows correct directory.
> The problem happens on --remote-tab-silent, not switching tab.
>

Yes, that makes quite a difference!

This issue was fixed in 7.3.061. You should upgrade your Vim.

I'm not certain what gVim Portable changes about the distribution, but Vim should be able to run from anywhere if you don't try to register a shell extension. Maybe it's the OLE registration stuff that they remove.

You can either compile your own Vim, or get the "Vim without Cream" build to get a more up-to-date version on Windows.

http://vim.wikia.com/wiki/Category:Building_Vim
http://sourceforge.net/projects/cream/files/Vim/

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