Copy the Command Output of Vim

When we excute the system command in the Vim(via :!command), sometimes we want to copy the output content, but it's difficult.

Copy it!

In the Vim, you can copy it by this function redir, just like this:

:redir @* | (Vim Command) | redir END

And then the output is in the clipboard, just use it as you want.

 标签: Vim, redir

作者  :  sailor

仅仅看明白了还不够,能把别人给讲明白了才算及格。



最新文章