Exit insert mode after entering the last field of a snippet
Exit insert mode after entering the last field of a snippet

Also attempts to fix some oddities with undo. I am not sure though whether I got
the fix for that right, as I do not fully understand what is happening under the
hood of the undo logic.

amfranz/spacemacs.d