Vim visual mode to system clipboard

copy/pasteosxvim

Using the vim text editor, I am looking for a method to copy content highlighted in visual mode to the system clipboard (i.e. I would then be able to Ctr-v that content say in a browser window).

Is there a standard way to copy content directly to the system clipboard? If not is there a suited hack to enable it for Mac OS 10.7.3?

Best Answer

If your VIM was built with the clipboard feature enabled, then you select your text in visual mode, and then type "*y.

To paste from the clipboard, do "*p.

Related Question