runtime(vim): Update help syntax file, improve highlighting of included Vim examples
- Take over as file maintainer. - Improve highlighting of legacy script examples by using :syn-iskeyword with the default 'iskeyword' value. Vim9 script examples are not supported yet. - Match admonition labels in more contexts. - Match URLs in more contexts. fixes #17721 closes: #17731 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
f6a308c65b
commit
1341176e7b
33
runtime/syntax/testdir/input/help.txt
Normal file
33
runtime/syntax/testdir/input/help.txt
Normal file
@ -0,0 +1,33 @@
|
||||
VIM HELP FILE FORMAT
|
||||
|
||||
|
||||
Issue #17721 (Strange >vim highlighting in help documentation?)~
|
||||
|
||||
*restore-cursor* *last-position-jump* >vim
|
||||
augroup RestoreCursor
|
||||
autocmd!
|
||||
autocmd BufReadPost *
|
||||
\ let line = line("'\"")
|
||||
\ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
|
||||
\ && index(['xxd', 'gitrebase'], &filetype) == -1
|
||||
\ && !&diff
|
||||
\ | execute "normal! g`\""
|
||||
\ | endif
|
||||
augroup END
|
||||
|
||||
|
||||
URLs~
|
||||
|
||||
*g:zig_recommended_style*
|
||||
By default the following indentation options are set, in accordance with Zig's
|
||||
recommended style (https://ziglang.org/documentation/master/): >
|
||||
|
||||
|
||||
NOTE, WARNING and DEPRECATED~
|
||||
|
||||
When you 'send a file to Vim', Vim changes to that file's directory. Note,
|
||||
however, that any long directory names will appear in their short (MS-DOS)
|
||||
form on some Windows versions. This is a limitation of the Windows "Send To"
|
||||
mechanism.
|
||||
|
||||
vim: set ft=help:
|
||||
Reference in New Issue
Block a user