add distinction for relational operators

pull/59/head
Igor Irianto 3 years ago
parent d7dc9e2ff3
commit 849fe0d916

@ -6,9 +6,9 @@ metaDescription: "How to write basic expressions with equalities, conditionals,
In this chapter, you will learn about equalities, conditionals, and loops using the data types you learned in the previous chapter.
## Equalities (Logical Operators)
## Relational Operators
Below are Vim's logical operators:
Below are Vim's relational operators:
```
a == b equal to
@ -46,7 +46,7 @@ echo 5 == "foo5"
### String Logic Operators
Vim has more logical operators for comparing strings:
Vim has more relational operators for comparing strings:
```
a =~ b
@ -99,7 +99,7 @@ echo str =~ "Hearty"
If you are writing a plugin for others, this is a tricky situation. Does the user have `ignorecase` or `noignorecase` setting? You definitely do *not* want to force your users to mutate their case ignore option. So what do you do?
Luckily, Vim has a logical operator that can *always* ignore or match case. To always match case, add a `#` at the end.
Luckily, Vim has an operator that can *always* ignore or match case. To always match case, add a `#` at the end.
```
set ignorecase

Loading…
Cancel
Save