title: How to remap Vim keys (PageUp and PageDown)
body: <p>I want to remap <code>&lt;PageUp&gt;</code> to <code>&lt;C-u&gt;</code> and <code>PageDown</code> to <code>&lt;C-d&gt;</code> per the <a href="http://vimdoc.sourceforge.net/htmldoc/scroll.html" rel="noreferrer">Vim scrolling documentation</a>.</p>
  
  <p>As it stands right now, my <code>/etc/vim/vimrc</code> looks like this:</p>
  
  <pre><code>nnoremap &lt;PageUp&gt; &lt;C-u&gt;
  nnoremap &lt;PageDown&gt; &lt;C-d&gt;
  </code></pre>
  
  <p>I've tried a lot of different combinations and nothing I've done has worked.</p>
  
  <p>My goal is to make the cursor move to the Start Of File or EOF when holding down PageUp/PageDown. As it is right now, the cursor stops before it gets all the way to the top (and PageDown scrolls past the EOF). Just annoyances I'm trying to fix.</p>
  
  <p><strong>EDIT:</strong> The above settings work fine. I was placing my mappings too early in the file.</p>