make match variable local to window
do not accumulate autocmds

Thanks for the hint, Houl!
handle filetype changes