<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>emre şahin's digital garden 🍃 - clipboard</title>
    <link>https://emresahin.net/tags/clipboard/</link>
    <description>Posts in the clipboard tag</description>
    <language>en</language>
    <managingEditor>contact@emresahin.net (Emre Şahin)</managingEditor>
    <lastBuildDate>Tue, 15 Sep 2026 19:46:32 +0000</lastBuildDate>
    <atom:link href="https://emresahin.net/tags/clipboard/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>Syncing IdeaVim with the System Clipboard</title>
      <published>2018-02-14T10:15:21+00:00</published>
      <updated>2018-02-14T10:15:21+00:00</updated>
      <author>Emre Şahin</author>
      <pubDate>Wed, 14 Feb 2018 10:15:21 +0000</pubDate>
      <link>https://emresahin.net/ideavim-to-use-system-clipboard-14093-73034/</link>
      <guid isPermaLink="true">https://emresahin.net/ideavim-to-use-system-clipboard-14093-73034/</guid>
      <description>I began using the IdeaVim plugin for Android Studio some time ago. It is a great tool, but as a Vim newbie, I was not aware that Vim does not use the system clipboard (Windows, macOS, Linux, etc.) for copy and paste operations by default. As a result, when you use the y (yank) command in IdeaVim,...</description>
      <category>til</category>
      <category>vim</category>
      <category>ideavim</category>
      <category>jetbrains</category>
      <category>clipboard</category>
      <category>configuration</category>
      <content:encoded><![CDATA[<p>I began using the <a href="https://github.com/JetBrains/ideavim">IdeaVim</a> plugin for Android Studio some time ago. It is a great tool, but as a Vim newbie, I was not aware that Vim does not use the system clipboard (Windows, macOS, Linux, etc.) for copy and paste operations by default. As a result, when you use the <code>y</code> (yank) command in IdeaVim, the text is not available to paste into other applications.</p>
<p>The solution is simple: add the following line to your <code>~/.ideavimrc</code> file:</p>
<pre><code class="language-vim">set clipboard+=unnamed
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Copying and pasting with XWindow clipboard from tmux</title>
      <published>2013-01-12T14:00:00+00:00</published>
      <updated>2013-01-12T14:00:00+00:00</updated>
      <author>Emre Şahin</author>
      <pubDate>Sat, 12 Jan 2013 14:00:00 +0000</pubDate>
      <link>https://emresahin.net/12235-5-1945/</link>
      <guid isPermaLink="true">https://emresahin.net/12235-5-1945/</guid>
      <description>tmux does not natively support XWindow’s clipboard. With two lines in .tmux.conf , you can configure two keys to send and retrieve clipboard content. Traditionally, applications use the PRIMARY selection, which uses the mouse selection for copying and pasting with the middle mouse button. However...</description>
      <category>Shell</category>
      <category>Linux</category>
      <category>tmux</category>
      <category>xwindow</category>
      <category>copy</category>
      <category>paste</category>
      <category>clipboard</category>
      <category>xsel</category>
      <content:encoded><![CDATA[<p><code>tmux</code> does not natively support XWindow’s clipboard. With two lines in
<code>.tmux.conf</code>, you can configure two keys to send and retrieve clipboard
content.</p>
<p>Traditionally, applications use the <code>PRIMARY</code> selection, which uses the mouse
selection for copying and pasting with the middle mouse button. However, this
is becoming less common, so I’ll configure the <code>CLIPBOARD</code>
selection used by most modern browsers, applications, and Emacs.</p>
<p>Add the following lines to <code>.tmux.conf</code>:</p>
<pre><code class="language-bash"># move x clipboard into tmux paste buffer
bind &lt; run "xsel -ob | tmux load-buffer - ; tmux paste-buffer "
# move tmux copy buffer into x clipboard
bind &gt; run "( tmux show-buffer | xsel -bi ) &amp;&amp; tmux display-message \"ok!\""
</code></pre>
<p>The first line sets <code>C-b &lt;</code> in <code>tmux</code> to retrieve the X clipboard contents
and paste them. The second line sets <code>C-b &gt;</code> to send the current <code>tmux</code> buffer to
the X clipboard for pasting into another application.</p>
<p>If you would still like to use the <code>PRIMARY</code> selection, you can drop the <code>b</code> options
from <code>xsel</code>, using <code>xsel -o</code> and <code>xsel -i</code> respectively.</p>]]></content:encoded>
    </item>
  </channel>
</rss>
