commit f046c3eca62d82078fb53d04e0665fa84f06ecca
parent ea2998fec90ce4666b9b85b2d1a7458e717e2a5a
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 1 Sep 2024 06:53:13 +0800
Merge pull request #30207 from zeertzjq/vim-7c8bbc6
vim-patch: doc updates
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
@@ -1381,10 +1381,12 @@ completion can be enabled:
-complete=arglist file names in argument list
-complete=augroup autocmd groups
+ -complete=breakpoint |:breakadd| suboptions
-complete=buffer buffer names
-complete=color color schemes
-complete=command Ex command (and arguments)
-complete=compiler compilers
+ -complete=diff_buffer diff buffer names
-complete=dir directory names
-complete=dir_in_path directory names in |'cdpath'|
-complete=environment environment variable names
@@ -1396,7 +1398,7 @@ completion can be enabled:
-complete=function function name
-complete=help help subjects
-complete=highlight highlight groups
- -complete=history :history suboptions
+ -complete=history |:history| suboptions
-complete=keymap keyboard mappings
-complete=locale locale names (as output of locale -a)
-complete=lua Lua expression |:lua|
@@ -1406,6 +1408,8 @@ completion can be enabled:
-complete=messages |:messages| suboptions
-complete=option options
-complete=packadd optional package |pack-add| names
+ -complete=runtime file and directory names in |'runtimepath'|
+ -complete=scriptnames sourced script names
-complete=shellcmd Shell command
-complete=sign |:sign| suboptions
-complete=syntax syntax file names |'syntax'|
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
@@ -152,8 +152,7 @@ add a few items or change the highlighting, follow these steps:
1. Create your user directory from 'runtimepath', see above.
2. Create a directory in there called "after/syntax". For Unix: >
- mkdir ~/.config/nvim/after
- mkdir ~/.config/nvim/after/syntax
+ mkdir -p ~/.config/nvim/after/syntax
3. Write a Vim script that contains the commands you want to use. For
example, to change the colors for the C syntax: >