In vim, when I use
:r !ls somefilename
it inserts output of that command on a new line below the current line.
If I do
let @a = system("ls")
and later
"ap
it still inserts the output on a new line below the current line.
Is there a way to make vim insert output at the current location?