@@ -38,8 +38,8 @@ USAGE *switch-usage* *:Switch* *:SwitchReve
3838
3939The main entry point of the plugin is a single command, | :Switch | . When the
4040command is executed, the plugin looks for one of a few specific patterns under
41- the cursor and performs a substition depending on the pattern. For example, if
42- the cursor is on the "true" in the following code:
41+ the cursor and performs a substitution depending on the pattern. For example,
42+ if the cursor is on the "true" in the following code:
4343>
4444 flag = true
4545<
@@ -81,10 +81,10 @@ You can also map the <Plug>s directly, for example:
8181<
8282Using mappings brings the benefit that the commands become repeatable with `.`
8383
84- There are three main principles that the substition follows:
84+ There are three main principles that the substitution follows:
8585
86861. The cursor needs to be on the match. Regardless of the pattern, the plugin
87- only performs the substition if the cursor is positioned in the matched
87+ only performs the substitution if the cursor is positioned in the matched
8888 text.
8989
90902. When several patterns match, the shortest match is performed. For example,
@@ -98,8 +98,8 @@ There are three main principles that the substition follows:
9898<
9999 This works if the cursor is positioned anywhere on the line except if it's
100100 on top of "true" or "false". In that case, the abovementioned true -> false
101- substition will be performed instead. If you want to perform a "larger"
102- substition instead, you could move your cursor away from the "smaller"
101+ substitution will be performed instead. If you want to perform a "larger"
102+ substitution instead, you could move your cursor away from the "smaller"
103103 match. In this case, move the cursor away from the "true" or "false" words.
104104
1051053. When several patterns with the same size match, the order of the
0 commit comments