mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:d6d4e13: runtime(doc): rewrite mkdir() doc and simplify {flags} meaning
related: vim/vim#14991
d6d4e13336
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
0600754d8d
commit
f557a985ef
17
runtime/doc/builtin.txt
generated
17
runtime/doc/builtin.txt
generated
@ -4994,17 +4994,14 @@ mkdir({name} [, {flags} [, {prot}]]) *mkdir()* *E73
|
|||||||
When {flags} is present it must be a string. An empty string
|
When {flags} is present it must be a string. An empty string
|
||||||
has no effect.
|
has no effect.
|
||||||
|
|
||||||
If {flags} contains "p" then intermediate directories are
|
{flags} can contain these character flags:
|
||||||
created as necessary.
|
"p" intermediate directories will be created as necessary
|
||||||
|
"D" {name} will be deleted at the end of the current
|
||||||
|
function, but not recursively |defer|
|
||||||
|
"R" {name} will be deleted recursively at the end of the
|
||||||
|
current function |defer|
|
||||||
|
|
||||||
If {flags} contains "D" then {name} is deleted at the end of
|
Note that when {name} has more than one part and "p" is used
|
||||||
the current function, as with: >vim
|
|
||||||
defer delete({name}, 'd')
|
|
||||||
<
|
|
||||||
If {flags} contains "R" then {name} is deleted recursively at
|
|
||||||
the end of the current function, as with: >vim
|
|
||||||
defer delete({name}, 'rf')
|
|
||||||
< Note that when {name} has more than one part and "p" is used
|
|
||||||
some directories may already exist. Only the first one that
|
some directories may already exist. Only the first one that
|
||||||
is created and what it contains is scheduled to be deleted.
|
is created and what it contains is scheduled to be deleted.
|
||||||
E.g. when using: >vim
|
E.g. when using: >vim
|
||||||
|
17
runtime/lua/vim/_meta/vimfn.lua
generated
17
runtime/lua/vim/_meta/vimfn.lua
generated
@ -6007,17 +6007,14 @@ function vim.fn.min(expr) end
|
|||||||
--- When {flags} is present it must be a string. An empty string
|
--- When {flags} is present it must be a string. An empty string
|
||||||
--- has no effect.
|
--- has no effect.
|
||||||
---
|
---
|
||||||
--- If {flags} contains "p" then intermediate directories are
|
--- {flags} can contain these character flags:
|
||||||
--- created as necessary.
|
--- "p" intermediate directories will be created as necessary
|
||||||
|
--- "D" {name} will be deleted at the end of the current
|
||||||
|
--- function, but not recursively |defer|
|
||||||
|
--- "R" {name} will be deleted recursively at the end of the
|
||||||
|
--- current function |defer|
|
||||||
---
|
---
|
||||||
--- If {flags} contains "D" then {name} is deleted at the end of
|
--- Note that when {name} has more than one part and "p" is used
|
||||||
--- the current function, as with: >vim
|
|
||||||
--- defer delete({name}, 'd')
|
|
||||||
--- <
|
|
||||||
--- If {flags} contains "R" then {name} is deleted recursively at
|
|
||||||
--- the end of the current function, as with: >vim
|
|
||||||
--- defer delete({name}, 'rf')
|
|
||||||
--- <Note that when {name} has more than one part and "p" is used
|
|
||||||
--- some directories may already exist. Only the first one that
|
--- some directories may already exist. Only the first one that
|
||||||
--- is created and what it contains is scheduled to be deleted.
|
--- is created and what it contains is scheduled to be deleted.
|
||||||
--- E.g. when using: >vim
|
--- E.g. when using: >vim
|
||||||
|
@ -7264,17 +7264,14 @@ M.funcs = {
|
|||||||
When {flags} is present it must be a string. An empty string
|
When {flags} is present it must be a string. An empty string
|
||||||
has no effect.
|
has no effect.
|
||||||
|
|
||||||
If {flags} contains "p" then intermediate directories are
|
{flags} can contain these character flags:
|
||||||
created as necessary.
|
"p" intermediate directories will be created as necessary
|
||||||
|
"D" {name} will be deleted at the end of the current
|
||||||
|
function, but not recursively |defer|
|
||||||
|
"R" {name} will be deleted recursively at the end of the
|
||||||
|
current function |defer|
|
||||||
|
|
||||||
If {flags} contains "D" then {name} is deleted at the end of
|
Note that when {name} has more than one part and "p" is used
|
||||||
the current function, as with: >vim
|
|
||||||
defer delete({name}, 'd')
|
|
||||||
<
|
|
||||||
If {flags} contains "R" then {name} is deleted recursively at
|
|
||||||
the end of the current function, as with: >vim
|
|
||||||
defer delete({name}, 'rf')
|
|
||||||
<Note that when {name} has more than one part and "p" is used
|
|
||||||
some directories may already exist. Only the first one that
|
some directories may already exist. Only the first one that
|
||||||
is created and what it contains is scheduled to be deleted.
|
is created and what it contains is scheduled to be deleted.
|
||||||
E.g. when using: >vim
|
E.g. when using: >vim
|
||||||
|
Loading…
Reference in New Issue
Block a user