Wednesday, August 25, 2010

make python os.chdir follow vim autochdir?

Hi,

I use the autochdir option in VIM and I also utilize VIM's built-in
Python interface. Is it possible to have the current directory for the
built-in Python interpreter follow VIM's autochdir. For example, when
I am editing a Python file, VIM's autochdir option puts me in the
same directory as the edited file as far as VIM is concern, but I
still have to manually

:py os.chdir(directory)

from the VIM command line in order to get the Python interpreter to
recognize the same directory that VIM has.

Is this possible?

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