neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit bd56c1e41f1f66d82595bf3fb40cbb7ffe5e38bc
parent dc704160b114c4b61712b66300c41641004a7b58
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sun,  6 Oct 2024 07:33:37 +0800

vim-patch:partial:89872f5: runtime(doc): update formatting and syntax

closes: vim/vim#15800

https://github.com/vim/vim/commit/89872f58a9938142417906fc3243257c67c0af9c

Co-authored-by: Milly <milly.ca@gmail.com>

Diffstat:
Mruntime/doc/cmdline.txt | 4++--
Mruntime/doc/indent.txt | 2+-
Mruntime/doc/intro.txt | 2+-
Mruntime/doc/motion.txt | 4++--
Mruntime/doc/repeat.txt | 10+++++-----
Mruntime/doc/spell.txt | 2+-
Mruntime/doc/usr_29.txt | 2+-
Mruntime/doc/various.txt | 3+--
Mruntime/syntax/help.vim | 8++++++--
9 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt @@ -449,13 +449,13 @@ The 'wildignorecase' option can be set to ignore case in filenames. For completing other texts (e.g. command names), the 'ignorecase' option is used instead (fuzzy matching always ignores case, however). -If you like tcsh's autolist completion, you can use this mapping: +If you like tcsh's autolist completion, you can use this mapping: > :cnoremap X <C-L><C-D> (Where X is the command key to use, <C-L> is CTRL-L and <C-D> is CTRL-D) This will find the longest match and then list all matching files. If you like tcsh's autolist completion, you can use the 'wildmode' option to -emulate it. For example, this mimics autolist=ambiguous: +emulate it. For example, this mimics autolist=ambiguous: > :set wildmode=longest,list This will find the longest match with the first 'wildchar', then list all matching files with the next. diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt @@ -116,7 +116,7 @@ If you really want to reindent when you type 'o', 'O', 'e', '0', '<', '>', "<!>", respectively, for those keys. For an emacs-style indent mode where lines aren't indented every time you -press <Enter> but only if you press <Tab>, I suggest: +press <Enter> but only if you press <Tab>, I suggest: > :set cinkeys=0{,0},:,0#,!<Tab>,!^F You might also want to switch off 'autoindent' then. diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt @@ -688,7 +688,7 @@ The current mode is "-- INSERT --" or "-- REPLACE --", see |'showmode'|. The command characters are those that you typed but were not used yet. If you have a slow terminal you can switch off the status messages to speed -up editing: +up editing: > :set nosc noru nosm If there is an error, an error message will be shown for at least one second diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt @@ -162,9 +162,9 @@ h or *h* CTRL-H or *CTRL-H* *<BS>* <BS> [count] characters to the left. |exclusive| motion. Note: If you prefer <BS> to delete a character, use - the mapping: + the mapping: > :map CTRL-V<BS> X - (to enter "CTRL-V<BS>" type the CTRL-V key, followed +< (to enter "CTRL-V<BS>" type the CTRL-V key, followed by the <BS> key) l or *l* diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt @@ -96,9 +96,9 @@ where the cursor was before the global command). The global command sets both the last used search pattern and the last used substitute pattern (this is vi compatible). This makes it easy to globally -replace a string: +replace a string: > :g/pat/s//PAT/g -This replaces all occurrences of "pat" with "PAT". The same can be done with: +This replaces all occurrences of "pat" with "PAT". The same can be done with: > :%s/pat/PAT/g Which is two characters shorter! @@ -447,7 +447,7 @@ Example: the lines > \:%, \n:>, \fb:- -are interpreted as if they were given in one line: +are interpreted as if they were given in one line: > :set comments=sr:/*,mb:*,el:*/,://,b:#,:%,n:>,fb:- All leading whitespace characters in the line before a backslash are ignored. @@ -540,7 +540,7 @@ the runtime path. Example: > Using a package and loading automatically ~ Let's assume your Nvim files are in "~/.local/share/nvim/site" and you want to -add a package from a zip archive "/tmp/foopack.zip": +add a package from a zip archive "/tmp/foopack.zip": > % mkdir -p ~/.local/share/nvim/site/pack/foo % cd ~/.local/share/nvim/site/pack/foo % unzip /tmp/foopack.zip @@ -589,7 +589,7 @@ If the package has an "after" directory, that directory is added to the end of Using a single plugin and loading it automatically ~ If you don't have a package but a single plugin, you need to create the extra -directory level: +directory level: > % mkdir -p ~/.local/share/nvim/site/pack/foo/start/foobar % cd ~/.local/share/nvim/site/pack/foo/start/foobar % unzip /tmp/someplugin.zip diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt @@ -776,7 +776,7 @@ them before the Vim word list is made. The tools for this can be found in the The format for the affix and word list files is based on what Myspell uses (the spell checker of Mozilla and OpenOffice.org). A description can be found here: - https://lingucomponent.openoffice.org/affix.readme ~ + https://lingucomponent.openoffice.org/affix.readme Note that affixes are case sensitive, this isn't obvious from the description. Vim supports quite a few extras. They are described below |spell-affix-vim|. diff --git a/runtime/doc/usr_29.txt b/runtime/doc/usr_29.txt @@ -34,7 +34,7 @@ following command: > "ctags" is a separate program. Most Unix systems already have it installed. If you do not have it yet, you can find Universal ctags at: - https://ctags.io ~ + https://ctags.io Universal ctags is preferred, Exuberant ctags is no longer being developed. diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt @@ -78,10 +78,9 @@ ga Print the ascii value of the character under the If the character can be inserted as a digraph, also output the two characters that can be used to create the character: - <ö> 246, Hex 00f6, Oct 366, Digr o: ~ + <ö> 246, Hex 00f6, Oct 366, Digr o: ~ This shows you can type CTRL-K o : to insert ö. - *g8* g8 Print the hex values of the bytes used in the character under the cursor, assuming it is in |UTF-8| diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Vim help file " Maintainer: The Vim Project <https://github.com/vim/vim> -" Last Change: 2023 Aug 10 +" Last Change: 2024 Oct 05 " Former Maintainer: Bram Moolenaar <Bram@vim.org> " Quit when a (custom) syntax file was already loaded @@ -60,10 +60,14 @@ syn match helpSpecial "\<N\.\s"me=e-2 syn match helpSpecial "(N\>"ms=s+1 syn match helpSpecial "\[N]" -" avoid highlighting N N in help.txt +" avoid highlighting N N in quickref.txt syn match helpSpecial "N N"he=s+1 syn match helpSpecial "Nth"me=e-2 syn match helpSpecial "N-1"me=e-2 +" highlighting N of cinoptions-values in indent.txt +syn match helpSpecial "^\t-\?\zsNs\?\s"me=s+1 +" highlighting N of cinoptions-values in indent.txt +syn match helpSpecial "^\t[>enf{}^L:=lbghNEpti+cC/(uUwWkmMjJ)*#P]N\s"ms=s+2,me=e-1 syn match helpSpecial "{[-_a-zA-Z0-9'"*+/:%#=[\]<>.,]\+}" syn match helpSpecial "\s\[[-a-z^A-Z0-9_]\{2,}]"ms=s+1 syn match helpSpecial "<[-a-zA-Z0-9_]\+>"