Written on 24 June 2015
Vim basic movement & editing.
Vimgolf challenge: Just the middle1
Delete the instructions at the top and bottom.
Leave only the numbered lines. LINE 1 LINE 2 LINE 3 That's all. Thank you very much.
LINE 1 LINE 2 LINE 3
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
: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.
Practice challenges http://vimgolf.com/challenges/54862fbb3f90ac0002904cf5 â†©