title: Vim Tab next/previous shortcuts in OSX
body: <p>I've started using <a href="https://stackoverflow.com/a/563992/51197">vim with ctags and tabs</a>:</p>
  
  <p><a href="https://i.stack.imgur.com/XQlGz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XQlGz.png" alt="enter image description here"></a></p>
  
  <p>Adding the following to my <code>~/.vimrc</code>:</p>
  
  <pre><code>map &lt;C-\&gt; :tab split&lt;CR&gt;:exec("tag ".expand("&lt;cword&gt;"))&lt;CR&gt;
  </code></pre>
  
  <p>Opens the ctags definition of the current word in a new tab by hitting <kbd>Ctrl</kbd>+<kbd>\</kbd>.</p>
  
  <p>However, tab switching is still painful and done manually with <code>:tabn</code> or <code>:tabp</code>.</p>
  
  <p>I've tried the <a href="http://vim.wikia.com/wiki/Using_tab_pages" rel="nofollow noreferrer">following <code>~/.vimrc</code> shortcuts</a>:</p>
  
  <pre><code>nnoremap &lt;C-Left&gt; :tabp&lt;CR&gt;
  nnoremap &lt;C-Right&gt; :tabn&lt;CR&gt;
  </code></pre>
  
  <p>With no luck - <kbd>Ctrl</kbd>+<kbd>→</kbd> and <kbd>Ctrl</kbd>+<kbd> ←</kbd> do nothing.</p>
  
  <p><strong>Any idea how map <kbd>Ctrl</kbd>+<kbd>→</kbd> and <kbd>Ctrl</kbd>+<kbd> ←</kbd> to tab-next and tab-prev in vim on OSX?</strong></p>