tags: vim, basics links: 202008121118 Basics of Vim
Normal Mode
Move the cursor
- h move one character left
- j move one character down
- k move one character up
- l move one character right
As many vim commands, row movement can be prefixed by a number to move s everal lines at a time:
- 4j move 4 rows down
- 6k move 6 rows up
Basic word movements:
- w move to beginning of next word
- b move to previous beginning of word
- e move to end of word
- W move to beginning of next word after a whitespace
- B move to beginning of previous word before a whitespace
- E move to end of word before a whitespace
Beginning/End of line movement
- 0 to the beginning of the line
- $ to the end of the line
source: freeCodeCamp