vim-patch:de18ef6: runtime(doc): Tweak documentation style (#40093)

closes: vim/vim#20412

de18ef6284

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
This commit is contained in:
zeertzjq
2026-06-03 02:55:44 +08:00
committed by GitHub
parent 5a8e4cc5fa
commit 31a8bf1a63
2 changed files with 14 additions and 13 deletions

View File

@@ -1728,14 +1728,15 @@ for the syntax items. For example, in the Scheme language completion should
include the "-", call-with-output-file. Depending on your filetype, this may
not provide the words you are expecting. Setting the
g:omni_syntax_use_iskeyword option to 0 will force the syntax plugin to break
on word characters. This can be controlled adding the following to your
on word characters. This can be controlled adding the following to your
vimrc: >
let g:omni_syntax_use_iskeyword = 0
For plugin developers, the plugin exposes a public function OmniSyntaxList.
This function can be used to request a List of syntax items. When editing a
SQL file (:e syntax.sql) you can use the ":syntax list" command to see the
various groups and syntax items. For example: >
For plugin developers, the plugin exposes a public function
syntaxcomplete#OmniSyntaxList. This function can be used to request a List of
syntax items. When editing a SQL file (:e syntax.sql) you can use the
":syntax list" command to see the various groups and syntax items. For
example: >
syntax list
Yields data similar to this: >
@@ -1749,22 +1750,22 @@ Yields data similar to this: >
image float integer timestamp real decimal
There are two syntax groups listed here: sqlOperator and sqlType. To retrieve
a List of syntax items you can call OmniSyntaxList a number of different
ways. To retrieve all syntax items regardless of syntax group: >
echo OmniSyntaxList( [] )
a List of syntax items you can call syntaxcomplete#OmniSyntaxList a number of
different ways. To retrieve all syntax items regardless of syntax group: >
echo syntaxcomplete#OmniSyntaxList( [] )
To retrieve only the syntax items for the sqlOperator syntax group: >
echo OmniSyntaxList( ['sqlOperator'] )
echo syntaxcomplete#OmniSyntaxList( ['sqlOperator'] )
To retrieve all syntax items for both the sqlOperator and sqlType groups: >
echo OmniSyntaxList( ['sqlOperator', 'sqlType'] )
echo syntaxcomplete#OmniSyntaxList( ['sqlOperator', 'sqlType'] )
A regular expression can also be used: >
echo OmniSyntaxList( ['sql\w\+'] )
echo syntaxcomplete#OmniSyntaxList( ['sql\w\+'] )
From within a plugin, you would typically assign the output to a List: >
let myKeywords = []
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
let myKeywords = syntaxcomplete#OmniSyntaxList( ['sqlKeyword'] )
SQL *ft-sql-omni*

View File

@@ -1367,7 +1367,7 @@ Associated setting variables: |g:netrw_chgperm|
CHANGING TO A BOOKMARKED PATH *netrw-gb* {{{2
To change to a bookmarked path, use
To change to a bookmarked path, use >
[{cnt}]gb