> 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?
As regards to my vim( Vim7.3 under WindowsXP ), the python do follow the
autochdir without having to change it manually.
1. Open vim setting "autochdir"
2. Open a file, and :py import os;print os.getcwd(), the python has
already pointed
to the dir correctly.
If you don't use the latest vim, update to the new one and try again.
>
> --
> 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 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:
Post a Comment