title: Open current file in web browser in Vim
body: <p>I'd like to be able to send the HTML file I'm currently editing in <code>vim</code> to my web browser, Chrome. I'm running Linux.</p>
  
  <p>This gets me very close:</p>
  
  <pre><code>nmap &lt;silent&gt; &lt;leader&gt;w :!google-chrome % &amp;
  </code></pre>
  
  <p>The browser opens and displays the correct file. However, the command isn't running in the background, which is what the <code>&amp;</code> is supposed to do. Instead <code>vim</code> drops to the background and I get some text output to my terminal window. I then have to do some clicking and <code>Enter</code> pressing to get my <code>vim</code> to come back to the foreground.</p>
  
  <p>Am I missing something?</p>
  
  <p>UPDATE: Thanks for all the suggestions. The issue seems to be that the focus seems to shift away from my terminal window when the browser window opens. Not sure if there's anything I can do about this.</p>