vim-copycat provides much simpler way to share clipboard between terminal and system
- copycat-clipboard
- Python 2.7
- virtual mode type
<C-c>c
copy into system clipboard or copycat reg 0 - insert mode type
<C-c>p
paste with system clipboard or copycat reg 0 - virtual mode type
<C-c>C
like<C-c>c
but copy into set reg - insert mode type
<C-c>P
like<C-c>p
but paste from reg - normal mode type
<C-c>l
show copycat data - normal mode type
<C-c>d
type reg name then remove copycat reg
sudo apt-get install python-pip
sudo pip install copycat-clipboard
cd ~/.vim/bundles
git clone git@github.com: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