title: Vim - Show data type
body: <p>I typically code most of my C projects in Vim. I am comfortable with navigation, search and replace, and indexing via Ctags/Cscope.</p>
  
  <p>One feature I would like to have, if possible, is a keymapping that will show the datatype for a variable under the cursor on screen.</p>
  
  <p>For example, if my cursor is on a variable, "test123" (ie: int test123 = 0) is there a way to have the type (int) and some other details about the variable shown in another tab within Vim? </p>
  
  <p>Also, is there something similar that would do the same for a struct variable, and show a list of all its members in the descriptive tab as well as the type (ie: struct)?</p>
  
  <p>I've also noticed that sometimes while coding, I have a tab titled "[Scratch][Preview]" at the top of Vim that appears to fulfill this requirement, but I have no idea what triggers it (searches and Ctag searches don't seem to trigger it). It looks like so:</p>
  
  <pre><code>name: myStruct::instanceOfStrct|  2 cmd: /^   int instanceOfStrct;$/
  .. (up a dir)                  |  3 kind: m
  &lt;/code/test/test.c             |  4 struct:   myStruct
  |+config/                      |  5 access:   public
  |+lib/                         |  6 filename: /code/test/test.c
  </code></pre>
  
  <p>I think this is something that already exists in Vim to some extent, but I have not idea how to work with it.</p>
  
  <p>Thank you.</p>