title: Vim: execute current file?
body: <p>If I have a file with a shebang line (e.g. <code>#!/bin/bash</code>) open in Vim and the file has execute permissions (i.e. <code>chmod +x</code>) I know I can type this to execute it without leaving the editor:</p>
  
  <pre><code>:! %:p
  </code></pre>
  
  <ul>
  <li><code>:</code> for command mode</li>
  <li><code>!</code> to run a shell command</li>
  <li><code>%</code> to refer to the file in the current buffer</li>
  <li><code>:p</code> to use the full path of the current file</li>
  </ul>
  
  <p>Is there a shorter shortcut for this frequent task?</p>
  
  <p>e.g. there is a <code>ZZ</code> shortcut for <code>:wq</code>, etc.</p>