title: How to copy all hlsearch text to clipboard in Vim
body: <p>file.txt</p>
  
  <pre><code>abc123
  456efg
  hi789j
  </code></pre>
  
  <p>command</p>
  
  <pre><code>:set hlsearch
  /\d\+
  </code></pre>
  
  <p>I want to copy highlighted text bellow to clipboard (or register):</p>
  
  <pre><code>123
  456
  789
  </code></pre>
  
  <p>Just like</p>
  
  <pre><code>egrep -o '[0-9]+' file.txt
  </code></pre>
  
  <p>Thanks.</p>