Cook
Get the value of a setting
:set expandtab?
Get the value of setting that is a variable
to find out what the current syntax highlighting mode is (encoded in a variable, not an option):
echo b:current_syntax
See where a variable was set
verbose set expandtab?