I wonder what the best way is to decide whether or not some plugin should be loaded depending on some specific compilation/version of Vim. Any help would be appreciated.
If you want it to depend on the version, use this:
if version > 700 "do stuff for version 7 and up endif
If what you really want to know is whether a certain command works, you can use the
if exists('+breakindent') set breakindent endif
If it's being in a GUI that you care about, try
if has('gui_running') or put the commands into