How do I inspect Vim variables?

Solution 1:

:echo g:SuperTabDefaultCompletionType

works fine. It gives an error if the variable isn't defined.

Solution 2:

Like lucapette wrote you can use :echo g:foo to inspect a variable. You can also use :let to see all defined variables and their values.