Vim practice diary #1

Written on 24 June 2015

Vim basic movement & editing.
Vimgolf challenge: Just the middle1
Delete the instructions at the top and bottom.

Start file

Leave only the  
numbered lines.  
LINE 1  
LINE 2  
LINE 3  
That's all.  
Thank you  
very much.  

End file

LINE 1  
LINE 2  
LINE 3  

I have learned

d2d delete two row G goto bottom
d2k delete 1+2 row
ZZ save then quit
:v/somthing/d keep all line have pattern something, v * is inverse,d* is delete
:g/somthing/d delete all line matched pattern something :g!/songthing/d keep all line have pattern something, d for delete , g! revert find
H,gg go to firt line.
G,L go to final line.

Read more on vim Vim-diary Tech Note