diff options
author | ZyX <kp-pav@yandex.ru> | 2015-07-18 12:23:42 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-07-26 02:34:32 +0300 |
commit | 01901e00389446840c19839a29c001096aae6dc0 (patch) | |
tree | 79b335278e5639c1c544f14072e35b38e219c80d | |
parent | 1206ac953f0cf2bc29ac3591fe151ca172863b1a (diff) | |
download | rneovim-01901e00389446840c19839a29c001096aae6dc0.tar.gz rneovim-01901e00389446840c19839a29c001096aae6dc0.tar.bz2 rneovim-01901e00389446840c19839a29c001096aae6dc0.zip |
documentation: Document changes
-rw-r--r-- | runtime/doc/eval.txt | 15 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 8 |
2 files changed, 16 insertions, 7 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index e80ab2c714..61b23b7e03 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4573,15 +4573,16 @@ mkdir({name} [, {path} [, {prot}]]) If {prot} is given it is used to set the protection bits of the new directory. The default is 0755 (rwxr-xr-x: r/w for the user readable for others). Use 0700 to make it unreadable - for others. This is only used for the last part of {name}. - Thus if you create /tmp/foo/bar then /tmp/foo will be created - with 0755. - Example: > + for others. + {Nvim} + {prot} is applied for all parts of {name}. Thus if you create + /tmp/foo/bar then /tmp/foo will be created with 0700. Example: > :call mkdir($HOME . "/tmp/foo/bar", "p", 0700) < This function is not available in the |sandbox|. - Not available on all systems. To check use: > - :if exists("*mkdir") -< + + If you try to create an existing directory with {path} set to + "p" mkdir() will silently exit. + *mode()* mode([expr]) Return a string that indicates the current mode. If [expr] is supplied and it evaluates to a non-zero Number or diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index fd07dd787f..5d4e6861f5 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -64,6 +64,14 @@ are always available and may be used simultaneously in separate plugins. The `neovim` pip package must be installed to use Python plugins in Nvim (see |nvim-python|). +|mkdir()| behaviour changed: +1. Assuming /tmp/foo does not exist and /tmp can be written to + mkdir('/tmp/foo/bar', 'p', 0700) will create both /tmp/foo and /tmp/foo/bar + with 0700 permissions. Vim mkdir will create /tmp/foo with 0755. +2. If you try to create an existing directory with `'p'` (e.g. mkdir('/', + 'p')) mkdir() will silently exit. In Vim this was an error. +3. mkdir() error messages now include strerror() text when mkdir fails. + ============================================================================== 4. New Features *nvim-features-new* |