title: How to get visually selected text in VimScript
body: <p>I'm able to get the cursor position with <code>getpos()</code>, but I want to retrieve the selected text <strong>within</strong> a line, that is <code>'&lt;,'&gt;</code>. How's this done?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I think I edited out the part where I explained that I want to get this text <strong>from a Vim script</strong>...</p>