diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-30 12:39:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 12:39:19 +0800 |
commit | 619d005ac30cbbd38c1d9ffbe6a8728ec7732519 (patch) | |
tree | 6690b671a3bd3f9e5759df1f8bc718a7cf6f4bd2 /runtime | |
parent | cd4638366759bc984d4cb7207a56e5bc112f4179 (diff) | |
parent | 0af056ebce189deedb58f7048108977fa5d81713 (diff) | |
download | rneovim-619d005ac30cbbd38c1d9ffbe6a8728ec7732519.tar.gz rneovim-619d005ac30cbbd38c1d9ffbe6a8728ec7732519.tar.bz2 rneovim-619d005ac30cbbd38c1d9ffbe6a8728ec7732519.zip |
Merge pull request #29912 from zeertzjq/vim-9.0.0327
vim-patch:9.0.{partial:0327,0330,0331,0333}
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 4 | ||||
-rw-r--r-- | runtime/doc/map.txt | 3 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 08a9022aff..4ef1573494 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -3901,6 +3901,10 @@ items({dict}) *items()* for [key, value] in items(mydict) echo key .. ': ' .. value endfor +< + A List or a String argument is also supported. In these + cases, items() returns a List with the index and the value at + the index. jobpid({job}) *jobpid()* Return the PID (process id) of |job-id| {job}. diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index ce2fbda045..e6eb01dae3 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -354,7 +354,8 @@ Note: *E1255* *E1136* <Cmd> commands must terminate, that is, they must be followed by <CR> in the -{rhs} of the mapping definition. |Command-line| mode is never entered. +{rhs} of the mapping definition. |Command-line| mode is never entered. To use +a literal <CR> in the {rhs}, use |<lt>|. 1.3 MAPPING AND MODES *:map-modes* diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index bd6550941d..17cd6e3318 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -4699,6 +4699,10 @@ function vim.fn.isnan(expr) end --- for [key, value] in items(mydict) --- echo key .. ': ' .. value --- endfor +--- < +--- A List or a String argument is also supported. In these +--- cases, items() returns a List with the index and the value at +--- the index. --- --- @param dict any --- @return any |