Vim copy clipboard between mac and ubuntu over ssh
<p>I have been following <a href="https://defuse.ca/blog/clipboard-over-ssh-with-vim.html" rel="nofollow">this guide</a> to try to get yanking to work across my ssh sessions. </p>

<p>I am using a mac laptop sshing into my ubuntu development machine. </p>

<p>I installed xclip, and added <code>X11Forwarding yes</code> to my <code>/etc/ssh/sshd_config</code> and added these lines to my ubuntu's ~/.vimrc</p>

<pre><code>vmap "+y :!xclip -f -sel clip
map "+p :r!xclip -o -sel clip
</code></pre>

<p>Right now, I use this command: <code>ssh -X -i my.pem ubuntu@myserver.com</code></p>

<p>When I try to yank a visual block, I would select the area with <code>v</code> and then press <code>"+y</code></p>

<p>All I see in my vim console line is this when I do so: <code>:'&lt;,'&gt;!xclip -f -sel clip</code> and I don't see any copying done. I am not even sure if the command is executed. (When I look at :history I don't see the command being listed either) </p>

<p>Any ideas how I can fix this? </p>