diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-08 13:57:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 13:57:24 +0800 |
commit | 057a5bc78d90db50caa85cdb34986fb186f0fd98 (patch) | |
tree | e5d770680e129e8ebdbb3faf1d0efaecd6950c98 | |
parent | 01f81ed89e58c64827306615a87779bdfea405bc (diff) | |
download | rneovim-057a5bc78d90db50caa85cdb34986fb186f0fd98.tar.gz rneovim-057a5bc78d90db50caa85cdb34986fb186f0fd98.tar.bz2 rneovim-057a5bc78d90db50caa85cdb34986fb186f0fd98.zip |
docs: add some missing changes from Vim runtime updates (#23533)
-rw-r--r-- | runtime/doc/eval.txt | 8 | ||||
-rw-r--r-- | runtime/doc/map.txt | 5 | ||||
-rw-r--r-- | runtime/doc/repeat.txt | 1 |
3 files changed, 8 insertions, 6 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 05fdf2f5bb..09c44a88af 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4270,10 +4270,10 @@ The input is in the variable "line", the results in the variables "file", getting the scriptnames in a Dictionary ~ *scriptnames-dictionary* -The |:scriptnames| command can be used to get a list of all script files that -have been sourced. There is no equivalent function or variable for this -(because it's rarely needed). In case you need to manipulate the list this -code can be used: > +The `:scriptnames` command can be used to get a list of all script files that +have been sourced. There is also the `getscriptinfo()` function, but the +information returned is not exactly the same. In case you need to manipulate +the output of `scriptnames` this code can be used: > " Get the output of ":scriptnames" in the scriptnames_output variable. let scriptnames_output = '' redir => scriptnames_output diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index 9ec592215e..37158e2e76 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -338,8 +338,8 @@ Example of using <Cmd> halfway Insert mode: > nnoremap <F3> aText <Cmd>echo mode(1)<CR> Added<Esc> Unlike <expr> mappings, there are no special restrictions on the <Cmd> -command: it is executed as if an (unrestricted) |autocmd| was invoked -or an async event event was processed. +command: it is executed as if an (unrestricted) |autocommand| was invoked +or an async event was processed. Note: - Because <Cmd> avoids mode-changes (unlike ":") it does not trigger @@ -638,6 +638,7 @@ not to be matched with any key sequence. This is useful in plugins *<MouseMove>* The special key name "<MouseMove>" can be used to handle mouse movement. It needs to be enabled with 'mousemoveevent'. +The |getmousepos()| function can be used to obtain the mouse position. *<Char>* *<Char->* To map a character by its decimal, octal or hexadecimal number the <Char> diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index 23030761dd..8644ce4b38 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -336,6 +336,7 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|. :scr[iptnames] List all sourced script names, in the order they were first sourced. The number is used for the script ID |<SID>|. + Also see `getscriptinfo()`. :scr[iptnames][!] {scriptId} *:script* Edit script {scriptId}. Although ":scriptnames name" |