Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Interact with System Clipboard in Vim

The following are ways for a Vim session to interact (copy/cut, paste) with other Vim sessions or other applications.

Use X Windows Clipboard Directly

If you prefer to use X windows clipboard as the default buffer for Vim, put set clipboard=unnamedplus in your .vimrc file. This obviously makes …