Make insert mode a transaction so undo undoes the whole entered text.