diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-07-31 10:46:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 16:46:38 +0800 |
commit | abc087f4c65ca547cae58518b42aee82ff4a07f6 (patch) | |
tree | c988358f1a3e0811053ece2a805f4e1d58c1e00f /runtime/doc/builtin.txt | |
parent | c1652bdcb5b5ca95b5ae328cec582f23816b70dd (diff) | |
download | rneovim-abc087f4c65ca547cae58518b42aee82ff4a07f6.tar.gz rneovim-abc087f4c65ca547cae58518b42aee82ff4a07f6.tar.bz2 rneovim-abc087f4c65ca547cae58518b42aee82ff4a07f6.zip |
docs: fix typos (#19024)
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Valery Viktorovsky <viktorovsky@gmail.com>
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index f973277b54..f844ae5aaf 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -6674,7 +6674,6 @@ setbufline({buf}, {lnum}, {text}) *setbufline()* |bufload()| if needed. To insert lines use |appendbufline()|. - Any text properties in {lnum} are cleared. {text} can be a string to set one line, or a list of strings to set multiple lines. If the list extends below the last @@ -8012,10 +8011,10 @@ synIDattr({synID}, {what} [, {mode}]) *synIDattr()* The result is a String, which is the {what} attribute of syntax ID {synID}. This can be used to obtain information about a syntax item. - {mode} can be "gui", "cterm" or "term", to get the attributes + {mode} can be "gui" or "cterm", to get the attributes for that mode. When {mode} is omitted, or an invalid value is used, the attributes for the currently active highlighting are - used (GUI, cterm or term). + used (GUI or cterm). Use synIDtrans() to follow linked highlight groups. {what} result "name" the name of the syntax item @@ -8040,15 +8039,15 @@ synIDattr({synID}, {what} [, {mode}]) *synIDattr()* "underdouble" "1" if double underlined "underdotted" "1" if dotted underlined "underdashed" "1" if dashed underlined - "strikethrough" "1" if struckthrough + "strikethrough" "1" if struckthrough "nocombine" "1" if nocombine + Returns an empty string on error. + Example (echoes the color of the syntax item under the cursor): > :echo synIDattr(synIDtrans(synID(line("."), col("."), 1)), "fg") < - Returns an empty string on error. - Can also be used as a |method|: > :echo synID(line("."), col("."), 1)->synIDtrans()->synIDattr("fg") |