vim-endwise icon indicating copy to clipboard operation
vim-endwise copied to clipboard

<CR> in Insert-mode breaks up changes

Open linduxed opened this issue 12 years ago • 2 comments

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.

linduxed avatar Jul 12 '13 20:07 linduxed

Could this issue be related to this discussion on vim-dev?

linduxed avatar Jul 13 '13 10:07 linduxed

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>.

tpope avatar Jul 13 '13 18:07 tpope