- Move Cursor: h j k l
- Exit vim:
- :q
- :q!
- Deletion: x
- Insertion: i
- Appending: a
- Editing a file:
- :wq
Lesson2
- Deletion commands(in normal mode)
- dw d2w
- d$ d3$
- de d2e
- dd
- Count+command+Motion
- Undo commands
- u
- U
ctrl
+R
- Move to the start of the line: 0
- Put commands: p
- Replace command: rx
- The change operator:
- ce
- cc
- cw
- c$
- Cursor location and File status:
ctrl
+G
- G
- gg
- Search Command:
- /
- n
- N
- ?
ctrl
+o
ctrl
+I
- Matching Parenthese search: %
- The substitute command
- :s/ole/new/g
- :s/thee/the
- :#,#s/old/new/g
- :%s/old/new/g
- :%s/old/new/gc
Lesson5
- More on writing file
- :!dir
- :!ls
- :w TEST
- :!del TEST
- :!rm TEST
- Selecting text to write
Lesson6
- The open command: o
- The append command: a
- The replace command: R
- Copy and paste text: y p v
- Set option: :set ...