mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
docs: add some missing changes from Vim runtime updates (#23533)
This commit is contained in:
parent
01f81ed89e
commit
057a5bc78d
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user