Automark: remove global vars, simple search, disable plugin while selection