Set auto-commands for closing preview mode upon completion.

Originally from SuperTab
https://github.com/ervandew/supertab/blob/master/plugin/supertab.vim#L863

Fixes #7