title: How to map compile and execute in vim?
body: <p>I want to have a command to compile and execute the C file that I'm editing in vim. How can I do it? The following doesn't work because of the .c in the filename.</p>
  
  <pre><code>:map &lt;leader&gt;m :!make &amp;&amp; ./%
  </code></pre>
  
  <p>If I use <code>:!make &amp;&amp; ./filename</code> I don't know how to move through the output so I'd like to see a solution with a vertical split window too.</p>