vim-endwise
vim-endwise copied to clipboard
<CR> in Insert-mode breaks up changes
Normally if you enter Insert-mode, everything from entering the mode until you return to Normal-mode is stored as one change.
It seems like every <CR> in Insert-mode breaks the change up into one more. So if between entering Insert-mode and exiting back to Normal-mode involved pressing <CR> three times, then you'd have three changes in total, instead of the expected one.
Could this issue be related to this discussion on vim-dev?
I can't reproduce.
I used to want it to split the undo up at carriage returns, so I made sure that if you had added <C-G>u to a <CR> mapping, that would be preserved. So, make sure nothing else is mapping <CR>.