How to redirect ex command output into current buffer or file?

前端 未结 6 1879
面向向阳花
面向向阳花 2020-11-30 21:58

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

6条回答
  •  悲&欢浪女
    2020-11-30 22:40

    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 .

    Listed in the new/extended features on vim's github. version8.txt

提交回复
热议问题