The mechanism of N-vinylindole formation via tandem imine formation and cycloisomerisation of o-ethynylanilines.