diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-02 18:20:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-02 18:20:17 +0200 |
commit | f4258308e288c82c30d35cb2d0e045e60bfdb21c (patch) | |
tree | ae6e0e2a854864471d8d6478b53f8fa0e14ea556 /runtime | |
parent | 4f2109d782f91f7341a51644e3629ad1cbaea991 (diff) | |
download | vim-f4258308e288c82c30d35cb2d0e045e60bfdb21c.zip |
updated for version 7.3.1099
Problem: Python: Changing directory with os.chdir() causes problems for
Vim's notion of directories.
Solution: Add vim.chdir() and vim.fchdir(). (ZyX)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/if_pyth.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt index d37bd49f4..7bd9b377e 100644 --- a/runtime/doc/if_pyth.txt +++ b/runtime/doc/if_pyth.txt @@ -180,6 +180,13 @@ vim.strwidth(str) *python-strwidth* Like |strwidth()|: returns number of display cells str occupies, tab is counted as one cell. +vim.chdir(*args, **kwargs) *python-chdir* +vim.fchdir(*args, **kwargs) *python-fchdir* + Run os.chdir or os.fchdir, then all appropriate vim stuff. + Note: you should not use these functions directly, use os.chdir and + os.fchdir instead. Behavior of vim.fchdir is undefined in case + os.fchdir does not exist. + Error object of the "vim" module vim.error *python-error* |