title: Prevent certain command mappings while in NERDTree window in Vim
body: <p>I have the following keys mapped in my <code>.vimrc</code> file:</p>
  <pre><code>noremap &lt;silent&gt; &lt;C-h&gt; :bprev&lt;CR&gt;
  noremap &lt;silent&gt; &lt;C-l&gt; :bnext&lt;CR&gt;
  </code></pre>
  <p>The commands they execute are provided from the <a href="http://www.vim.org/scripts/script.php?script_id=1664" rel="nofollow noreferrer">buftabs script</a>.</p>
  <p>What I would like to do is prevent those key mappings from being executed when I'm in the NERDTree split. The reason for this is if the commands are run while in NERDTree, a file buffer gets loaded in the split instead. Then, to fix it, the window needs to be closed and opened again.</p>
  <p>This is a similar problem as explained in <a href="https://stackoverflow.com/questions/3514172/prevent-opening-files-inside-nerdtree-or-minibuffexplorer">another question</a>, but the problem there was corrected by configuring the plugin, while the buftabs script does not have such an option.</p>