For evil-mode, I did a package in the past, it should be on melpa: https://github.com/VanLaser/evil-nl-break-undo
For evil-mode, I did a package in the past, it should be on melpa: https://github.com/VanLaser/evil-nl-break-undo