0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

runtime(doc): Fix typos in several documents

closes: #15034

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
h-east 2024-06-17 18:12:30 +02:00 committed by Christian Brabandt
parent 946f61c405
commit 84ac2126f4
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
7 changed files with 24 additions and 22 deletions

View File

@ -3591,7 +3591,7 @@ get({dict}, {key} [, {default}])
Preferably used as a |method|: > Preferably used as a |method|: >
mydict->get(key) mydict->get(key)
< <
Return type: any, depending on {list} Return type: any, depending on {dict}
get({func}, {what}) get({func}, {what})
Get item {what} from Funcref {func}. Possible values for Get item {what} from Funcref {func}. Possible values for
@ -3755,7 +3755,7 @@ getcellwidths() *getcellwidths()*
by |setcellwidths()|. The format is equal to the argument of by |setcellwidths()|. The format is equal to the argument of
|setcellwidths()|. If no character ranges have their cell |setcellwidths()|. If no character ranges have their cell
widths overridden, an empty List is returned. widths overridden, an empty List is returned.
<
Return type: list<any> Return type: list<any>
@ -4567,7 +4567,7 @@ getqflist([{what}]) *getqflist()*
vcol |TRUE|: "col" is visual column vcol |TRUE|: "col" is visual column
|FALSE|: "col" is byte index |FALSE|: "col" is byte index
nr error number nr error number
pattern search list<number> pattern search pattern used to locate the error
text description of the error text description of the error
type type of the error, 'E', '1', etc. type type of the error, 'E', '1', etc.
valid |TRUE|: recognized error message valid |TRUE|: recognized error message

View File

@ -1,4 +1,4 @@
*options.txt* For Vim version 9.1. Last change: 2024 Jun 11 *options.txt* For Vim version 9.1. Last change: 2024 Jun 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -1915,7 +1915,7 @@ A jump table for the options with a short description can be found at |Q_op|.
feature} feature}
A template for a comment. The "%s" in the value is replaced with the A template for a comment. The "%s" in the value is replaced with the
comment text, and should be padded with a space when possible. comment text, and should be padded with a space when possible.
Currently used to add markers for folding, see |fold-marker| also Currently used to add markers for folding, see |fold-marker|. Also
commonly used by commenting plugins (e.g. |comment-install|). commonly used by commenting plugins (e.g. |comment-install|).
*'compatible'* *'cp'* *'nocompatible'* *'nocp'* *'compatible'* *'cp'* *'nocompatible'* *'nocp'*

View File

@ -1,4 +1,4 @@
*syntax.txt* For Vim version 9.1. Last change: 2024 Jun 13 *syntax.txt* For Vim version 9.1. Last change: 2024 Jun 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -5685,9 +5685,9 @@ PmenuSbar Popup menu: Scrollbar.
*hl-PmenuThumb* *hl-PmenuThumb*
PmenuThumb Popup menu: Thumb of the scrollbar. PmenuThumb Popup menu: Thumb of the scrollbar.
*hl-PmenuMatch* *hl-PmenuMatch*
PmenuMatch Popup menu: Matched text in normal item PmenuMatch Popup menu: Matched text in normal item.
*hl-PmenuMatchSel* *hl-PmenuMatchSel*
PmenuMatchSel Popup menu: Matched text in selected item PmenuMatchSel Popup menu: Matched text in selected item.
*hl-PopupNotification* *hl-PopupNotification*
PopupNotification PopupNotification
Popup window created with |popup_notification()|. If not Popup window created with |popup_notification()|. If not

View File

@ -648,7 +648,7 @@ term_getjob({buf}) *term_getjob()*
Get the Job associated with terminal window {buf}. Get the Job associated with terminal window {buf}.
{buf} is used as with |term_getsize()|. {buf} is used as with |term_getsize()|.
Returns |v:null| when there is no job. In Vim9 script, return Returns |v:null| when there is no job. In Vim9 script, return
null_job when there is no job. |null_job| when there is no job.
Can also be used as a |method|: > Can also be used as a |method|: >
GetBufnr()->term_getjob() GetBufnr()->term_getjob()

View File

@ -1,4 +1,4 @@
*testing.txt* For Vim version 9.1. Last change: 2024 Jun 06 *testing.txt* For Vim version 9.1. Last change: 2024 Jun 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -483,7 +483,7 @@ test_unknown() *test_unknown()*
test_void() *test_void()* test_void() *test_void()*
Return a value with void type. Only useful for testing. Return a value with void type. Only useful for testing.
Return type: unknown Return type: void
============================================================================== ==============================================================================
3. Assert functions *assert-functions-details* 3. Assert functions *assert-functions-details*
@ -499,6 +499,7 @@ assert_beeps({cmd}) *assert_beeps()*
GetCmd()->assert_beeps() GetCmd()->assert_beeps()
< <
Return type: |Number| Return type: |Number|
*assert_equal()* *assert_equal()*
assert_equal({expected}, {actual} [, {msg}]) assert_equal({expected}, {actual} [, {msg}])
When {expected} and {actual} are not equal an error message is When {expected} and {actual} are not equal an error message is
@ -522,7 +523,7 @@ assert_equal({expected}, {actual} [, {msg}])
< <
Return type: |Number| Return type: |Number|
< *assert_equalfile()* *assert_equalfile()*
assert_equalfile({fname-one}, {fname-two} [, {msg}]) assert_equalfile({fname-one}, {fname-two} [, {msg}])
When the files {fname-one} and {fname-two} do not contain When the files {fname-one} and {fname-two} do not contain
exactly the same text an error message is added to |v:errors|. exactly the same text an error message is added to |v:errors|.
@ -550,6 +551,7 @@ assert_exception({error} [, {msg}]) *assert_exception()*
endtry endtry
< <
Return type: |Number| Return type: |Number|
*assert_fails()* *assert_fails()*
assert_fails({cmd} [, {error} [, {msg} [, {lnum} [, {context}]]]]) assert_fails({cmd} [, {error} [, {msg} [, {lnum} [, {context}]]]])
Run {cmd} and add an error message to |v:errors| if it does Run {cmd} and add an error message to |v:errors| if it does

View File

@ -1,4 +1,4 @@
*version9.txt* For Vim version 9.1. Last change: 2024 Jun 10 *version9.txt* For Vim version 9.1. Last change: 2024 Jun 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -31694,7 +31694,7 @@ The release 9.1 is dedicated to Vim's Benevolent dictator for life
This release has hundreds of bug fixes, there are a few new features and there This release has hundreds of bug fixes, there are a few new features and there
are many minor improvements. are many minor improvements.
Vim9 classes Vim9 classes ~
------------ ------------
Support for classes and objects in a Vim9 script are added. This is described Support for classes and objects in a Vim9 script are added. This is described
in |vim9-class|. The following features are supported: in |vim9-class|. The following features are supported:

View File

@ -3,7 +3,7 @@
" Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com> " Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com>
" Doug Kearns <dougkearns@gmail.com> " Doug Kearns <dougkearns@gmail.com>
" URL: https://github.com/vim-jp/syntax-vim-ex " URL: https://github.com/vim-jp/syntax-vim-ex
" Last Change: 2024 Jun 15 " Last Change: 2024 Jun 17
" Former Maintainer: Charles E. Campbell " Former Maintainer: Charles E. Campbell
" DO NOT CHANGE DIRECTLY. " DO NOT CHANGE DIRECTLY.
@ -874,12 +874,12 @@ endif
" Allows users to specify the type of embedded script highlighting " Allows users to specify the type of embedded script highlighting
" they want: (perl/python/ruby/tcl support) " they want: (perl/python/ruby/tcl support)
" g:vimsyn_embed == 0 : don't embed any scripts " g:vimsyn_embed == 0 : don't embed any scripts
" g:vimsyn_embed =~# 'l' : embed lua (but only if vim supports it) " g:vimsyn_embed =~# 'l' : embed Lua (but only if vim supports it)
" g:vimsyn_embed =~# 'm' : embed mzscheme (but only if vim supports it) " g:vimsyn_embed =~# 'm' : embed MzScheme (but only if vim supports it)
" g:vimsyn_embed =~# 'p' : embed perl (but only if vim supports it) " g:vimsyn_embed =~# 'p' : embed Perl (but only if vim supports it)
" g:vimsyn_embed =~# 'P' : embed python (but only if vim supports it) " g:vimsyn_embed =~# 'P' : embed Python (but only if vim supports it)
" g:vimsyn_embed =~# 'r' : embed ruby (but only if vim supports it) " g:vimsyn_embed =~# 'r' : embed Ruby (but only if vim supports it)
" g:vimsyn_embed =~# 't' : embed tcl (but only if vim supports it) " g:vimsyn_embed =~# 't' : embed Tcl (but only if vim supports it)
if !exists("g:vimsyn_embed") if !exists("g:vimsyn_embed")
let g:vimsyn_embed= "lmpPr" let g:vimsyn_embed= "lmpPr"
endif endif