You start recording by q
and you can end it by typing q again.
Recording is a really useful feature of Vim.
It records everything you type. You can then replay it simply by typing @.
Record search, movement, replacement...
One of the best feature of Vim IMHO.