Assuming the current buffer is the file 'foobar' in the current
directory. After running the following Vim commands:
:python import os
:python os.chdir("subdir")
the current buffer name is not changed as it is when you run
the Vim command ':cd subdir' (but the output of ':pwd' is Ok),
and when the following command is run afterwards:
:write
Vim writes the buffer to the file 'subdir/foobar', instead of the
original file.
This happens with Vim 7.0 compiled with Python 2.5.
Xavier
--
http://clewn.sourceforge.net gdb support in Vim