title: Vim: How to force Python3 over Python2
body: <p>I'm using Vim compiled with both <code>+python/dyn</code> and <code>+python3/dyn</code><sup>1</sup>. I don't use Python2 anymore and never want Vim to use Python2, but it seems to find Python2 before Python3 and uses it instead.</p>
  <p>I've read elsewhere that if at the top of my <code>.vimrc</code> I include:</p>
  <pre><code>if has('python3')
  endif
  </code></pre>
  <p>then Vim will use Python3. Unfortunately, this has not been my experience. When I include that at the top of my <code>.vimrc</code>, Vim still finds Python2 first and thus ignores Python3.</p>
  <hr />
  <p><sup>1</sup> I use the pre-compiled <a href="https://macvim-dev.github.io/macvim/" rel="nofollow noreferrer">MacVim</a> for both the gui and the command-line.</p>