vim-copycat provides much simpler way to share clipboard between terminal and system
- copycat-clipboard
- Python 2.7
- virtual mode type
<C-c>ccopy into system clipboard or copycat reg 0 - insert mode type
<C-c>ppaste with system clipboard or copycat reg 0 - virtual mode type
<C-c>Clike<C-c>cbut copy into set reg - insert mode type
<C-c>Plike<C-c>pbut paste from reg - normal mode type
<C-c>lshow copycat data - normal mode type
<C-c>dtype reg name then remove copycat reg
sudo apt-get install python-pipsudo pip install copycat-clipboardcd ~/.vim/bundlesgit clone [email protected]:georgefs/vim-copycat.git
then you're all set, from now you're able to use system clipboard as in Vim.
You could set the following settings in your ~/.vimrc:
default register in Vim
clipboard which will be used by copycat-clipboard, default is empty, which means the system clipboard.
Ctrl-c, Ctrl-v style hotkey bindings
do or do not sync with copycat