]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): fix typos.
authorh_east <h.east.727@gmail.com>
Mon, 2 Oct 2023 19:47:13 +0000 (04:47 +0900)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 19:47:13 +0000 (21:47 +0200)
* Fix typo in document (Related: #12516)
* Fix E1363 duplication
* Fix one more typo.

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/cmdline.txt
runtime/doc/eval.txt
runtime/doc/filetype.txt
runtime/doc/pattern.txt
runtime/doc/repeat.txt
runtime/doc/tags
runtime/doc/vim9.txt
runtime/doc/vim9class.txt

index 3d63b1964b4ba520a8fed81461e10106c63492dd..9493658ed51433d210f9b94278625dc1602a61bd 100644 (file)
@@ -788,7 +788,7 @@ An example for subtracting (which isn't very useful): >
 On this text:
        1 one ~
        2 two ~
-       3 three FOLDED~
+       3 three FOLDED ~
        4 four FOLDED ~
        5 five FOLDED ~
        6 six FOLDED ~
index 4f9a3c99f5f2ed3cd8a69062dcbfed478ee612a0..41b7d56c69d78fd26ac3d0eb41d7689991fb613e 100644 (file)
@@ -2424,7 +2424,7 @@ v:progpath        Contains the command with which Vim was invoked, in a form
                ".exe" is not added to v:progpath.
                Read-only.
 
-                                   *v:python3_version* *python3-version-variable*
+                               *v:python3_version* *python3-version-variable*
 v:python3_version
                Version of Python 3 that Vim was built against.  When
                Python is loaded dynamically (|python-dynamic|), this version
index 987b0d89e962347ddc7afb5ea19ffa64366412e3..901711edff6a78acdcc799cd6cbc2a5ab31b9920 100644 (file)
@@ -433,7 +433,7 @@ So to enable this only for ruby, set the following variable: >
        :let g:ruby_exec = 1
 
 If both, the global `plugin_exec` and the `<filetype>_exec` specific variable
-are set, the filetpe specific variable should have precedent.
+are set, the filetype specific variable should have precedent.
 
 AWK                                                    *ft-awk-plugin*
 
index 9e048ff64ad9c61fe4ea6424af830bfc18e1de0b..4fa26e0431be1f477b0d355be3c06d0beffdb4c4 100644 (file)
@@ -1080,7 +1080,7 @@ match ASCII characters, as indicated by the range.
 
 \(\)   A pattern enclosed by escaped parentheses.      */\(* */\(\)* */\)*
        E.g., "\(^a\)" matches 'a' at the start of a line.
-       There can only be ten of these.  You can use "\%(" to add more, but
+       There can only be nine of these.  You can use "\%(" to add more, but
        not counting it as a sub-expression.
        *E51* *E54* *E55* *E872* *E873*
 
index 17dffa82f75d920fb64e37420925055a516d8853..247dd0992ce70707dcd252b093dbb296496499b8 100644 (file)
@@ -1149,8 +1149,8 @@ Profiling should give a good indication of where time is spent, but keep in
 mind there are various things that may clobber the results:
 
 - The accuracy of the time measured depends on the gettimeofday(), or
-  clock_gettime if available, system function. The accuracy ranges from 1/100
-  second to nanoseconds. With clock_gettime the times are displayed in
+  clock_gettime() if available, system function. The accuracy ranges from
+  1/100 second to nanoseconds. With clock_gettime() the times are displayed in
   nanoseconds, otherwise microseconds.  You can use `has("prof_nsec")`.
 
 - Real elapsed time is measured, if other processes are busy they may cause
index 249800fd2928929a61f5a8755088227b752ea4b5..a275352c88b4f44f8386e842792018c91069c778 100644 (file)
@@ -4458,7 +4458,7 @@ E136      starting.txt    /*E136*
 E1360  vim9class.txt   /*E1360*
 E1361  syntax.txt      /*E1361*
 E1362  vim9class.txt   /*E1362*
-E1363  vim9class.txt   /*E1363*
+E1363  vim9.txt        /*E1363*
 E1364  recover.txt     /*E1364*
 E1365  vim9class.txt   /*E1365*
 E1366  vim9class.txt   /*E1366*
index 1431a134e8fdde2d3b77acc53fdd2637e90fe328..ddcd25503a3bae44a154beb3d34659a95cf5aa03 100644 (file)
@@ -1557,7 +1557,7 @@ string to a number.
 
 If a type is given where it is not expected you can get *E1272* .
 
-If a type is incomplete you get *E1363*, e.g. when you have an object for
+If a type is incomplete you get *E1363* , e.g. when you have an object for
 which the class is not known (usually that is a null object).
 
 Type inference ~
@@ -1756,7 +1756,7 @@ Exporting an item can be written as: >
        export interface MyClass ...
 <                                                      *E1043* *E1044*
 As this suggests, only constants, variables, `:def` functions and classes can
-be exported. {not implemented yet: class, interface}
+be exported.
 
                                                        *E1042*
 `:export` can only be used in Vim9 script, at the script level.
@@ -1862,9 +1862,9 @@ However, the namespace cannot be resolved on its own: >
 <
 This also affects the use of |<SID>| in the legacy mapping context.  Since
 |<SID>| is only a valid prefix for a function and NOT for a namespace, you
-cannot use it
-to scope a function in a script local namespace. Instead of prefixing the
-function with |<SID>| you should use|<ScriptCmd>|. For example: >
+cannot use it to scope a function in a script local namespace. Instead of
+prefixing the function with |<SID>| you should use|<ScriptCmd>|. For example:
+>
        noremap ,a <ScriptCmd>:call s:that.OtherFunc()<CR>
 <
                                                        *:import-cycle*
index d8bd0328cd5e08b69f704f02eb4f50afab28e67d..3e5493f20375ee69247f0c3cc7fc0ab7240a8d60 100644 (file)
@@ -304,7 +304,7 @@ as the first character in the name, and it can be made public by prefixing
                                                        *class-method*
 Class methods are also declared with "static".  They can use the class
 variables but they have no access to the object variables, they cannot use the
-"this" keyword.
+"this" keyword:
 >
        class OtherThing
           this.size: number
@@ -656,7 +656,7 @@ When a variable is declared to have the type of an object, but it is not
 initialized, the value is null.  When trying to use this null object Vim often
 does not know what class was supposed to be used.  Vim then cannot check if
 a variable name is correct and you will get an "Using a null object" error,
-even when the variable name is invalid. *E1360* *E1362* *E1363*
+even when the variable name is invalid. *E1360* *E1362*
 
 
 Default constructor ~