How can I add a string to the end of each line in Vim?
:%s/$/\*/g
should work and so should :%s/$/*/g
.
Even shorter than the :search command:
:%norm A*
This is what it means:
% = for every line
norm = type the following commands
A* = append '*' to the end of current line