title: Check Visual mode
body: <p>What is the best way to check in a vimscript which visual mode is currently active (visual or visual block)?  </p>
  
  <p>I've read about <code>mode()</code> but I can't make it work.<br>
  <code>echo mode()</code> doesn't work for me<br>
  <code>if mode() == "v"</code> doesn't work for me as well.  </p>