Moving around

Move to top of file

gg

Move to last line in file

G

Move to last character in file

G$

Operations

Replace spaces with new lines

:%s/ /^M/g    

The ^M is typed using Ctrl-V-Enter

Remove all lines

:0
dG

Delete all chars from cursor to end of line

d$

Copy paste line

Y ("yank")
p ("put below")
P ("put above")

Copy paste several lines

11yy ("yank 11 lines")
p ("put below")
P ("put above")

Move line

dd ("delete")
p ("put below")
P ("put above")