For example,
#LINE0
LINE1
LINE2
LINE3
append DEBUG =>
#LINE0
LINE1 DEBUG
LINE2 DEBUG
LINE3 DEBUG
Using global command makes it easier:
:g/./normal A DEBUG
Explanation:
: ................ command
g ................ global
/ ................ start search
. ................ any char
/ ................ end of search
normal ........... do the global command in normal mode
A ................ start appending mode (insert)
<space>DEBUG ..... what you need :)
In all lines, replace the string of at least one character with that string followed by
DEBUG
.