'Enabling clipboard+ in vim

How do I enable the clipboard+ feature in Vim?

All questions related to copy pasting from Vim to the OS clipboard specify that this feature must be enabled.

vim --version | grep "clipboard"

returns

-clipboard -xterm_clipboard


Solution 1:[1]

You need to compile it with ./configure --enable=clipboard. If you are using Vim bundled by your distribution then you need to check which one provides integration with it (on Debian it is vim-gtk IIRC).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pdoherty926