Alternative to macros: the Vim norm(al) command
Essentially, if you’re at a line in normal mode,
:norm ihello<cr>
is the same asihello<esc>
.
Source: The norm(al) command is really cool : vim
Good alternative to macros if you’re applying the same change to multiple lines.