diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-04-19 15:14:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-19 15:14:17 +0200 |
| commit | 0124a7bfa9e27796e561cb0b3a045b9327bf7077 (patch) | |
| tree | 86f767630011a459ab189e0b5455b48abd2ab1c8 /runtime/doc | |
| parent | 147cc60d24f093b5154824889f2151489774ef33 (diff) | |
| download | rneovim-0124a7bfa9e27796e561cb0b3a045b9327bf7077.tar.gz rneovim-0124a7bfa9e27796e561cb0b3a045b9327bf7077.tar.bz2 rneovim-0124a7bfa9e27796e561cb0b3a045b9327bf7077.zip | |
vim-patch:75ab590f8504 (#18170)
Update runtime files
https://github.com/vim/vim/commit/75ab590f8504a8912ca0b8c58f6b897bb7a34f07
omit builtin.txt change to `expand()` (depends on 8.2.4726)
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/autocmd.txt | 27 | ||||
| -rw-r--r-- | runtime/doc/builtin.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/change.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/editing.txt | 5 | ||||
| -rw-r--r-- | runtime/doc/eval.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/motion.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/nvim_terminal_emulator.txt | 3 | ||||
| -rw-r--r-- | runtime/doc/syntax.txt | 2 |
8 files changed, 25 insertions, 20 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 07158982f2..bf231044a0 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -69,6 +69,7 @@ Or use `:execute`: > :augroup mine | exe "au! BufRead *" | augroup END :augroup mine | exe "au BufRead * set tw=70" | augroup END +< *autocmd-expand* Note that special characters (e.g., "%", "<cword>") in the ":autocmd" arguments are not expanded when the autocommand is defined. These will be expanded when the Event is recognized, and the {cmd} is executed. The only @@ -275,14 +276,14 @@ BufRead or BufReadPost When starting to edit a new buffer, after processing modelines. See |BufWinEnter| to do something after processing modelines. Also triggered: - - when writing an unnamed buffer such that the - buffer gets a name + - when writing an unnamed buffer in a way that + the buffer gets a name - after successfully recovering a file - for the "filetypedetect" group when executing ":filetype detect" Not triggered: - - for ":r file" - - if the file doesn't exist + - for the `:read file` command + - when the file doesn't exist *BufReadCmd* BufReadCmd Before starting to edit a new buffer. Should read the file into the buffer. |Cmd-event| @@ -542,6 +543,15 @@ DirChangedPre When the |current-directory| is going to be switching window (or tab) <afile> is set to the new directory name. Non-recursive (event cannot trigger itself). + *ExitPre* +ExitPre When using `:quit`, `:wq` in a way it makes + Vim exit, or using `:qall`, just after + |QuitPre|. Can be used to close any + non-essential window. Exiting may still be + cancelled if there is a modified buffer that + isn't automatically saved, use |VimLeavePre| + for really exiting. + See also |QuitPre|, |WinClosed|. *FileAppendCmd* FileAppendCmd Before appending to a file. Should do the appending to the file. Use the '[ and '] @@ -568,15 +578,6 @@ FileChangedRO Before making the first change to a read-only *E881* If the number of lines changes saving for undo may fail and the change will be aborted. - *ExitPre* -ExitPre When using `:quit`, `:wq` in a way it makes - Vim exit, or using `:qall`, just after - |QuitPre|. Can be used to close any - non-essential window. Exiting may still be - cancelled if there is a modified buffer that - isn't automatically saved, use |VimLeavePre| - for really exiting. - See also |QuitPre|, |WinClosed|. *FileChangedShell* FileChangedShell When Vim notices that the modification time of a file has changed since editing started. diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 7871885a5d..81d7f4b83a 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1809,7 +1809,7 @@ execute({command} [, {silent}]) *execute()* `:redir`, error messages are dropped. To get a list of lines use |split()| on the result: > - split(execute('args'), "\n") + execute('args')->split("\n") < This function is not available in the |sandbox|. Note: If nested, an outer execute() will not observe output of diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 0d19f025ec..8e666484d7 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -583,7 +583,7 @@ attack or other people reading your file). When Vim exits the directory and all files in it are deleted. When Vim has the setuid bit set this may cause problems, the temp file is owned by the setuid user but the filter command probably runs as the original user. -Directory for temporary files is created in the first suitable directory of: +Directory for temporary files is created in the first possible directory of: Unix: $TMPDIR, /tmp, current-dir, $HOME. Windows: $TMPDIR, $TMP, $TEMP, $USERPROFILE, current-dir. diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt index 1cc8c21462..b25d5e89bd 100644 --- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -412,7 +412,8 @@ does apply like to other wildcards. Environment variables in the expression are expanded when evaluating the expression, thus this works: > :e `=$HOME .. '/.vimrc'` -This does not work, $HOME is inside a string and used literally: > +This uses $HOME inside a string and it will be used literally, most likely not +what you intended: > :e `='$HOME' .. '/.vimrc'` If the expression returns a string then names are to be separated with line @@ -1494,7 +1495,7 @@ session or with another command (e.g., a filter command). Then you will know which version of the file you want to keep. The accuracy of the time check depends on the filesystem. On Unix it is -usually sub-second. With old file sytems and on MS-Windows it is normally one +usually sub-second. With old file systems and on MS-Windows it is normally one second. Use `has('nanotime')` to check if sub-second time stamp checks are available. diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index e3d4ef2085..2f3602caa1 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4302,7 +4302,7 @@ parentheses can be cut out from |v:exception| with the ":substitute" command. : :try : - : " something with arithmetics and I/O + : " something with arithmetic and I/O : :catch /^EXCEPT:MATHERR:RANGE/ : let function = substitute(v:exception, '.*(\(\a\+\)).*', '\1', "") diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt index 2cc6842402..228d1fcb87 100644 --- a/runtime/doc/motion.txt +++ b/runtime/doc/motion.txt @@ -1045,7 +1045,7 @@ in the current file (an indent is removed and a long line is truncated to fit in the window). The marker ">" indicates the current position in the jumplist. It may not be -shown when filtering the |:jump| command using |:filter| +shown when filtering the |:jumps| command using |:filter| You are currently in line 1167. If you then use the CTRL-O command, the cursor is put in line 1154. This results in: diff --git a/runtime/doc/nvim_terminal_emulator.txt b/runtime/doc/nvim_terminal_emulator.txt index 9ac81e2916..0e2b048541 100644 --- a/runtime/doc/nvim_terminal_emulator.txt +++ b/runtime/doc/nvim_terminal_emulator.txt @@ -265,6 +265,8 @@ Put focus on the gdb window to type commands there. Some common ones are: - next execute the current line and stop at the next line - step execute the current line and stop at the next statement, entering functions +- until execute until past the current cursor line or past a specified + position or the current stack frame returns - finish execute until leaving the current function - where show the stack - frame N go to the Nth stack frame @@ -281,6 +283,7 @@ gdb: *:Step* execute the gdb "step" command *:Over* execute the gdb "next" command (`:Next` is a Vim command) + *:Until* execute the gdb "until" command *:Finish* execute the gdb "finish" command *:Continue* execute the gdb "continue" command *:Stop* interrupt the program diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 6875f43b86..4e3900aeed 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -188,7 +188,7 @@ A syntax group name doesn't specify any color or attributes itself. The name for a highlight or syntax group must consist of ASCII letters, digits and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give -an error when using other characters. The maxium length of a group name is +an error when using other characters. The maximum length of a group name is about 200 bytes. *E1249* To be able to allow each user to pick their favorite set of colors, there must |