diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-03 02:30:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 02:30:27 -0700 |
commit | 6d87022050ffbd5d818781427329c5362e3df197 (patch) | |
tree | 3809b2b1a7790d8b30e6d694c575eb68f02f661c /vimscript.html.markdown | |
parent | c76b8f690a577d9ff89947d79c36a96a7c3b4deb (diff) | |
parent | e8dabf3c1955e1a458e8bc936587ad59772a9c33 (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'vimscript.html.markdown')
-rw-r--r-- | vimscript.html.markdown | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vimscript.html.markdown b/vimscript.html.markdown index c2934af8..04fee6fa 100644 --- a/vimscript.html.markdown +++ b/vimscript.html.markdown @@ -11,7 +11,7 @@ contributors: " ############## " " Vim script (also called VimL) is the subset of Vim's ex-commands which -" supplies a number of features one one would expect from a scripting language, +" supplies a number of features one would expect from a scripting language, " such as values, variables, functions or loops. Always keep in the back of " your mind that a Vim script file is just a sequence of ex-commands. It is " very common for a script to mix programming-language features and raw @@ -38,11 +38,11 @@ echo 'Hello' | echo 'world!' " Putting a comment after a command usually works pwd " Displays the current working directory -" Except for some commands it does not; use the command delemiter before the +" Except for some commands it does not; use the command delimiter before the " comment (echo assumes that the quotation mark begins a string) echo 'Hello world!' | " Displays a message -" Line breaks can be escaped by pacing a backslash as the first non-whitespace +" Line breaks can be escaped by placing a backslash as the first non-whitespace " character on the *following* line. Only works in script files, not on the " command line echo " Hello @@ -98,7 +98,7 @@ echo v:false | " Evaluates to 0 or the string 'v:false' " Boolean values can result from comparison of two objects. echo x == y | " Equality by value -echo x != y | " Unequality +echo x != y | " Inequality echo x > y | " Greater than echo x >= y | " Greater than or equal echo x < y | " Smaller than @@ -110,7 +110,7 @@ echo x isnot y | " Instance non-identity (lists and dictionaries) " echo 'a' < 'b'. Case sensitivity depends on the setting of 'ignorecase' " " Explicit case-sensitivity is specified by appending '#' (match case) or '?' -" (ignore case) to the operator. Prefer explicity case sensitivity when writing +" (ignore case) to the operator. Prefer explicitly case sensitivity when writing " portable scripts. echo 'a' < 'B' | " True or false depending on 'ignorecase' @@ -315,7 +315,7 @@ let s:isNumber = {x -> type(x) == type(0)} | " Local: any name allowed " Assign values of list to multiple variables (number of items must match) let [x, y] = [1, 2] -" Assign the remainer to a rest variable (note the semicolon) +" Assign the remainder to a rest variable (note the semicolon) let [mother, father; children] = ['Alice', 'Bob', 'Carol', 'Dennis', 'Emily'] @@ -610,7 +610,7 @@ echo exists(':Make') | " Command echo exists("#CursorHold") | " Auto-command defined for event echo exists("#BufReadPre#*.gz") | " Event and pattern echo exists("#filetypeindent") | " Auto-command group -echo exists("##ColorScheme") | " Auto-commnand supported for event +echo exists("##ColorScheme") | " Auto-command supported for event " Various dynamic values (see |expand()|) echo expand('%') | " Current file name |