Merge pull request #4 from forkmantis/ch4-fix-dw

Chapter 4 Example Fixes
This commit is contained in:
Igor Irianto 2020-07-16 11:14:44 -05:00 committed by GitHub
commit 4d449a8725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,8 +65,8 @@ Now that you know basic nouns and verbs, let's apply our grammar rule! Suppose y
const learn = "vim";
```
- To yank everything from your current location to the end of the line: `y$`.
- To delete one word from current location: `dw`.
- To change the next paragraph, say `c}`.
- To delete from your current location to the beginning of the next word: `dw`.
- To change from your current location to the end of the current paragraph, say `c}`.
Motions also accept count number as arguments *(I will discuss this further in the next chapter)*. If you need to go up 3 lines, instead of pressing `k` 3 times, you can do `3k`. Count works with Vim grammar.