# Mastering the Vim Language Watching Note

• 2020-1-26

This is a watching note of the video:

"Sometimes you gotta work a little so you can ball a lot"

Learning VIM is a process.
INVESTING IN YOURSELF!

Typing is not the bottleneck!

1. It's different
2. Not @ work
3. break up with your mouse
4. But can it...?
5. Always a better way
6. Learn new things every week

Operator:

1. c - Change
2. d - Delete ### 3. v - Visual Mode #### Examples

Motion:

1. w word + right whitespace; W WORD
2. e end of the word; E WORD
3. b first the word; B WORD
4. s surrounding

## Tips for Mastering the VIM Language

• Use "dot" command to repeat the work
• Use more general text objects (iw instead of w for example)
• Prefer text objects to motions when possible
• Use relative number
• Visual Mode Is a Smell: Can't be remembered by "dot" command
1. c + S clear current line
2. c + s + surrounding change surroundings
3. d + d delete current line, and move cursor to the beginning of the last line.
4. y + s + i + w/W + surrounding: Add surroundings (Support ', ., <)
• y + s + i + w/W + {: Add { and } around the text-object.
• y + s + i + w/W + }: Add { and } around the text-object.