title: Vim: How to go to the declaration of a C++ method using ctags
body: <p>How do I jump to the declaration of a C++ method instead of the definition using <code>:tag</code> or <code>C-]</code>? I tried</p>
  
  <pre><code>ctags * --C++-kinds=+p
  </code></pre>
  
  <p>to generate the tags file but <code>:tselect</code> still does not list any declarations, only definitions. The header files are hpp files and source files are cpp files, all in the same directory.</p>
  
  <p>I have seen <a href="https://stackoverflow.com/a/19950419/2734140">this answer</a> but it does not answer my question, except for a comment from where I got the above idea (<code>--&lt;LANG&gt;-kinds</code>).</p>