The Law
The most pertinent law relating to vaping is the Health Act 2006. This is the statute that forbids smoking in public places. E-cigarettes are exempt from this law, because
1) They are not 'lit';
2) They do not contain tobacco.
THE END
It is no more illegal to vape in a pub than it is to breathe in and out.