[3+1+1] type cyclization of ClCF2COONa for the assembly of imidazoles and tetrazoles via in situ generated isocyanides.