I have vim 7.2 (-clipboard -xterm_clipboard ...) in Ubuntu. You can see that it's not support clipboard. So I want to write little vim script which copies visual selected text into the clipboard using xclip tool.
You know xclip tool works like that:
echo 'hello' | xclip -selection clipboard #it copies 'hello' into clipboard
And vim can run shell commands, so I want to copy visual selected text to where instead of 'hello', But I don't know how to combine xclip and vim. Can you help me to implement it.
Thanks for your time!