VI/VIM Tricks
Add a string to the beginning of every line.
Replace <STRING> with your string
:%s!^!<STRING>!
Remove all lines that begin with 2010
:g/^2010.*$/d
Remove Blank Lines
:g/^$/d
Delete first 3 characters of each line, if followed by a blank
This one is really a sed command (outside of VI), but it seemed relevant.
sed ‘s/^… //g’ test.txt