diff options
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 8b0da25ec..a065fcea2 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.0. Last change: 2023 Jan 17 +*builtin.txt* For Vim version 9.0. Last change: 2023 Feb 14 VIM REFERENCE MANUAL by Bram Moolenaar @@ -266,7 +266,7 @@ gettabwinvar({tabnr}, {winnr}, {name} [, {def}]) gettagstack([{nr}]) Dict get the tag stack of window {nr} gettext({text}) String lookup translation of {text} getwininfo([{winid}]) List list of info about each window -getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window +getwinpos([{timeout}]) List X and Y coord in pixels of Vim window getwinposx() Number X coord in pixels of the Vim window getwinposy() Number Y coord in pixels of the Vim window getwinvar({nr}, {varname} [, {def}]) @@ -382,7 +382,7 @@ matchstrpos({expr}, {pat} [, {start} [, {count}]]) max({expr}) Number maximum value of items in {expr} menu_info({name} [, {mode}]) Dict get menu item information min({expr}) Number minimum value of items in {expr} -mkdir({name} [, {path} [, {prot}]]) +mkdir({name} [, {flags} [, {prot}]]) Number create directory {name} mode([expr]) String current editing mode mzeval({expr}) any evaluate |MzScheme| expression @@ -6261,17 +6261,20 @@ min({expr}) Return the minimum value of all items in {expr}. Example: > mylist->min() < *mkdir()* *E739* -mkdir({name} [, {path} [, {prot}]]) +mkdir({name} [, {flags} [, {prot}]]) Create directory {name}. - If {path} contains "p" then intermediate directories are - created as necessary. Otherwise it must be "". + When {flags} is present it must be a string. An empty string + has no effect. - If {path} contains "D" then {name} is deleted at the end of + If {flags} contains "p" then intermediate directories are + created as necessary. + + If {flags} contains "D" then {name} is deleted at the end of the current function, as with: > defer delete({name}, 'd') < - If {path} contains "R" then {name} is deleted recursively at + If {flags} contains "R" then {name} is deleted recursively at the end of the current function, as with: > defer delete({name}, 'rf') < Note that when {name} has more than one part and "p" is used @@ -7958,7 +7961,7 @@ setcellwidths({list}) *setcellwidths()* terminal, counted in screen cells. The values override 'ambiwidth'. Example: > call setcellwidths([ - \ [0x111, 0x111, 1], + \ [0x111, 0x111, 1], \ [0x2194, 0x2199, 2], \ ]) @@ -7972,7 +7975,7 @@ setcellwidths({list}) *setcellwidths()* {width} must be either 1 or 2, indicating the character width in screen cells. *E1112* An error is given if the argument is invalid, also when a - range overlaps with another. *E1113* + range overlaps with another. *E1113* If the new value causes 'fillchars' or 'listchars' to become invalid it is rejected and an error is given. @@ -10551,7 +10554,7 @@ writefile({object}, {fname} [, {flags}]) < 'D' Delete the file when the current function ends. This works like: > - :defer delete({fname}) + :defer delete({fname}) < Fails when not in a function. Also see |:defer|. 's' fsync() is called after writing the file. This flushes |