Skip to content

Instantly share code, notes, and snippets.

@inesp
Created October 17, 2019 20:03
Show Gist options
  • Save inesp/0c8d789fb6401fd3042d669f807ef89b to your computer and use it in GitHub Desktop.
Save inesp/0c8d789fb6401fd3042d669f807ef89b to your computer and use it in GitHub Desktop.
...
5. Move on to Lesson 2.3 to understand what is happening.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lesson 2.3: ON OPERATORS AND MOTIONS
Many commands that change text are made from an operator and a motion.
The format for a delete command with the d delete operator is as follows:
d motion
Where:
d - is the delete operator.
motion - is what the operator will operate on (listed below).
A short list of motions:
w - until the start of the next word, EXCLUDING its first character.
e - to the end of the current word, INCLUDING the last character.
$ - to the end of the line, INCLUDING the last character.
Thus typing de will delete from the cursor to the end of the word.
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment