From 31a8bf1a63fe973573ecb4be910fd2e8c151cd7a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 3 Jun 2026 02:55:44 +0800 Subject: [PATCH] vim-patch:de18ef6: runtime(doc): Tweak documentation style (#40093) closes: vim/vim#20412 https://github.com/vim/vim/commit/de18ef628460b1cd3ae2aca9cd19b9b1c319e60c Co-authored-by: Hirohito Higashi --- runtime/doc/insert.txt | 25 ++++++++++++----------- runtime/pack/dist/opt/netrw/doc/netrw.txt | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 78df2c1b0e..6175ae01bf 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -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* diff --git a/runtime/pack/dist/opt/netrw/doc/netrw.txt b/runtime/pack/dist/opt/netrw/doc/netrw.txt index 8edcd484eb..907a55b721 100644 --- a/runtime/pack/dist/opt/netrw/doc/netrw.txt +++ b/runtime/pack/dist/opt/netrw/doc/netrw.txt @@ -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