How to copy a selection to the OS X clipboard

后端 未结 27 2314
野趣味
野趣味 2020-11-29 14:17

I have an area selected in Vim. How can I copy it into the OS X clipboard?

(The OS X clipboard can be written to via a pipe to /usr/bin/pbcopy)

27条回答
  •  情书的邮戳
    2020-11-29 15:15

    My main problem was the default OSX version of Vim. Installing it via homebrew added +clipboard to the build.

    You can check with:

    vim --version
    

    to see if it says -clipboard or +clipboard.

提交回复
热议问题