runtime(help): Update syntax, add vim9 example language
"vim9" is Vim9 script and "vim" is legacy script. See: https://github.com/vim/vim/pull/18350#discussion_r2372462539 closes: #18407 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ae20d732ae
commit
3a56139398
@ -1,4 +1,4 @@
|
||||
*helphelp.txt* For Vim version 9.1. Last change: 2025 Sep 15
|
||||
*helphelp.txt* For Vim version 9.1. Last change: 2025 Sep 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -463,12 +463,14 @@ To quote a block of ex-commands verbatim, place a greater than (>) character
|
||||
at the end of the line before the block and a less than (<) character as the
|
||||
first non-blank on a line following the block. Any line starting in column 1
|
||||
also implicitly stops the block of ex-commands before it. E.g. >
|
||||
|
||||
function Example_Func()
|
||||
echo "Example"
|
||||
endfunction
|
||||
<
|
||||
To enable syntax highlighting for a block of code, place a language name
|
||||
annotation (e.g. "vim") after a greater than (>) character. E.g. >vim
|
||||
|
||||
function Example_Func()
|
||||
echo "Example"
|
||||
endfunction
|
||||
@ -476,7 +478,8 @@ annotation (e.g. "vim") after a greater than (>) character. E.g. >vim
|
||||
*g:help_example_languages*
|
||||
By default, help files only support Vim script highlighting. If you need
|
||||
syntax highlighting for other languages, add to your |vimrc|: >
|
||||
:let g:help_example_languages = { "vim": "vim", "sh": "bash" }
|
||||
:let g:help_example_languages = {
|
||||
\ "vim": "vim", "vim9": "vim", "bash": "sh" }
|
||||
The key represents the annotation marker name, and the value is the 'syntax'
|
||||
name.
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*usr_05.txt* For Vim version 9.1. Last change: 2025 Apr 10
|
||||
*usr_05.txt* For Vim version 9.1. Last change: 2025 Sep 27
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -308,6 +308,7 @@ This switches on three very clever mechanisms:
|
||||
|
||||
|
||||
*restore-cursor* *last-position-jump* >vim
|
||||
|
||||
augroup RestoreCursor
|
||||
autocmd!
|
||||
autocmd BufReadPost *
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*usr_52.txt* For Vim version 9.1. Last change: 2025 Mar 17
|
||||
*usr_52.txt* For Vim version 9.1. Last change: 2025 Sep 27
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -347,7 +347,7 @@ Have a look at the package located at $VIMRUNTIME/pack/dist/opt/comment/
|
||||
HIGHLIGHT YANK PLUGIN
|
||||
|
||||
Vim comes with the highlight-yank plugin, written in Vim9 script
|
||||
|hlyank-install|, here is a simplified implementation: >vim
|
||||
|hlyank-install|, here is a simplified implementation: >vim9
|
||||
|
||||
vim9script
|
||||
|
||||
|
||||
Reference in New Issue
Block a user