просто нажмите A:
A Append text at the end of the line [count] times.
(от :help A
)
Ваша начальная попытка не работает, потому что Вы переходите к EOL с $, но затем Вы используете i вместо a:
i Insert text before the cursor [count] times.
When using CTRL-O in Insert mode |i_CTRL-O| the count
is not supported.
в то время как
a Append text after the cursor [count] times. If the
cursor is in the first column of an empty line Insert
starts there. But not when 'virtualedit' is set!
но поскольку я сказал: действительное решение является A.