Note. Digging a hole for future reference
Lesson1.1: hjkl-H (left), J (donw), K (up), L (right)
Lesson1.2: Q!
Lesson1.3: x
Lesson1.4: I
Lesson1.5: A (append)
Lesson1.6: WQ
Lesson2.1: DW
Lesson2.2: d $ (delete to the end of the line)
Lesson2.3: Motion
DW (delete until the start of the next word, excluding its first character)
De (delete to the end of the current word, including the last character)
D $ (delete to the end of the line, including the last character)
Lesson2.4: using a count for a motion
2 W (move the cursor two words forward)
3E (move the cursor to the end of the third word forware)
0 (move to the start of the line)
$ (Move to the end of the line)
Lesson2.5: using a count to delete more
D2w (Delete 2 words)
Lesson2.6:
Dd (delete current line)
2dd (Delete 2 lines)
Lesson2.7:
U (UNDO previous actions)
U (undo all the change on a line)
In addition: w (forward just 1 word)
Lesson3.1: P (paste/Put)
Lesson3.2: R (replace one letter)
Lesson3.3: Ce (to change until the end of a word) --- deletes the word and places you in insert mode.
Lesson3.4: C [number] motion more changes using C
Lesson4.1: cursor location and file status
CTRL + g (show filename and the position in the file)
G (move you to the bottom of the file)
GG (move you to the start of the file)
Line + g (go to line)
: Line (go to line)
Lesson4.2: SEARCH Command
/(Search forward)
? (Search backward)
CTRL + O (go back to where you are before search)
N (next occurrence)
N (previous occurrence)
Lesson4.3: % (Marching ")]}")
Lesson4.4:
: % S/old/new/g (to substitute new for old in the whole file)
: #,# S/old/new/g (from line # To #, substitute new for old)
: % S/old/new/GC (with a prompt whether to substitute or not)
: S/old/new (to substitute new for the first old in current line)
: S/old/new/g (to substitue new for old Int current line)
Lesson5.1: Execute an external command
:! Command
Lesson5.2: more on writing files
:! W test.txt
Lesson5.3: Selecting text to write
V motion: W filename
V motion: D (delete selected text)
Lesson5.4: Retrieving and merging files
: R filename (insert the content in the filename file to the cursor)
: R! Ls (insert the LS command output to the cursor)
Lesson6.1: the open command
O: (input in the next line)
O: (input in the previous line)
Lesson6.2: The APPEND Command
A: (insert at the cursor)
A: (insert at the end of a row)
E: (move the cursor to the end of the word)
Lesson6.3: another way to replace
R: (continuous replacement)
Lesson6.4: copy and paste
Y (Yank/copy)
P (paste)
Lesson6.5: set Option
Set nu (set row number)
Lesson7.1: getting help
F1
: Help
Lesson7.2: Create a STARTUP script
. Vimrc
Lesson7.3: Completion
You must add more exercises. Otherwise, you will not forget them for a long time.