Skip to content

Commit df58397

Browse files
committed
Fix typo
1 parent 14b28ec commit df58397

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ There are three main principles that the substitution follows:
5555
```
5656

5757
This works if the cursor is positioned anywhere on the line except if it's
58-
on top of "true" or "false". In that case, the abovementioned true -> false
59-
substition will be performed instead. If you want to perform a "larger"
60-
substition instead, you could move your cursor away from the "smaller"
58+
on top of "true" or "false". In that case, the above-mentioned true -> false
59+
substitution will be performed instead. If you want to perform a "larger"
60+
substitution instead, you could move your cursor away from the "smaller"
6161
match. In this case, move the cursor away from the "true" or "false" words.
6262

6363
3. When several patterns with the same size match, the order of the

doc/switch.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ USAGE *switch-usage* *:Switch* *:SwitchReve
3838

3939
The main entry point of the plugin is a single command, |:Switch|. When the
4040
command 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
<
8282
Using 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

8686
1. 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

9090
2. 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

105105
3. When several patterns with the same size match, the order of the

0 commit comments

Comments
 (0)