title: File completion when mapping commands in VIM
body: <p>I often create a <strong>temporary mapping</strong> to do something on a particular file.</p>
  
  <p>Typical example is this:</p>
  
  <pre><code>:map &lt;leader&gt;f :w&lt;cr&gt;:! bundle exec cucumber features/account/sign_in.feature:41&lt;cr&gt;
  </code></pre>
  
  <p>I want the file <code>features/account/sign_in.feature</code> to be autocompleted from the current directory.</p>
  
  <p>This should simply save the current file and shell out on <code>&lt;leader&gt;f</code> to run the command.</p>
  
  <p>It allows me to easily <strong>work on a piece of code not thinking about jumping</strong> to a particular file and run it.</p>
  
  <p>The problem is that creating such a binding is cumbersome and <strong>error prone</strong>.</p>
  
  <p>VIM doesn't allow <strong>completing the file name when mapping</strong>. Also using <code>%</code> is totally different ( I want to map to a file <strong>statically</strong>).</p>
  
  <p>What is a better way of doing it?</p>
  
  <p>Thanks.</p>