Use setlocal to switch diff on/off

Now the diff stays intact when blaming or searching in other tabs.
There are no more global set commands used directly in this plugin.