How can I redirect or pipe the output of an ex command into my current buffer or a file?
For example, I want to read the contents of all the registers into the curre
Unfortunately I have no rep, so I cannot add this as a comment to 'Francis Niu'.
The execute() function looks like the easiest way to accomplish this, and it was added in vim 8 .
execute()
Listed in the new/extended features on vim's github. version8.txt