title: How to get the content of the current buffer in vim command mode?
body: <p>There is a vim function <code>Send_to_Screen(text)</code> which sends some text to a console screen session. I have a mapping</p>
  
  <pre><code>vmap &lt;F4&gt; "ry :call Send_to_Screen(@r)&lt;CR&gt;
  </code></pre>
  
  <p>which calls the function with the current selection. Now I want do define another mapping which calls the function with the contents of the whole buffer, but I don't get it to work. I tried</p>
  
  <pre><code>nmap &lt;F5&gt; maggVG"ry`a :call Send_to_Screen(@r)&lt;CR&gt; 
  </code></pre>
  
  <p>but it doesn't work. So how do I define the mapping with the text of the current buffer?</p>