First we need to decide what "section" should mean for a Potion file. There are
two pairs of section movement commands, so we can come up with two "schemes" and
-our users can
choose the one they prefer.
+our users can se the one they prefer.
Let's use the following two schemes to define where Potion sections start:
The answer is that we searched using `/` (or `?`) and by default Vim places your
cursor at the beginning of matches. For example, when you run `/foo` your
-cursor will be placed on the
"f" in "foo ".
+cursor will be placed on the in foo.
To tell Vim to put the cursor at the end of the match instead of the beginning,
we can use a search flag. Try searching in your Potion file like so:
-Vim will find the word
"factorial " and move you to it. Press `n` a few times to
+Vim will find the word factorial and move you to it. Press `n` a few times to
move through the matches. The `e` flag tells Vim to put the cursor at the end
of matches instead of the beginning. Try it in the other direction too:
-Vim will display
"hello " but the visual selection will also be cleared!
+Vim will display hello but the visual selection will also be cleared!
When running an ex mode command with `:` the visual selection is always cleared.
The `gv` command reselects the previous visual selection, so this will "undo"