title: Best of both worlds: arrow keys for cursor movement or flipping through buffers
body: <p>I really like this vim trick to use the left and right arrows to flip between buffers:</p>
  
  <pre><code>"left/right arrows to switch buffers in normal mode
  map &lt;right&gt; :bn&lt;cr&gt;
  map &lt;left&gt; :bp&lt;cr&gt;
  </code></pre>
  
  <p>(Put that in ~/.vimrc)</p>
  
  <p>But sometimes I'm munching on a sandwich or something when scrolling around a file and I really want the arrow keys to work normally.
  I think what would make most sense is for the arrow keys to have the above buffer-flipping functionality only if there are actually multiple buffers open.</p>
  
  <p>Is there a way to extend the above to accomplish that? </p>