TL;DR; version - How do I undo text that was pasted in from my OS copy buffer without undoing other text that was typed in since I went into insert mode?
- Put something in your OS copy buffer (e.g. highlight some text and do
- Go into insert mode in vim (
- Type something ( e.g.
- Without exiting insert mode, paste from your copy buffer into vim (
- Try to undo the paste (
It undoes everything from the last time you went into insert mode. In otherwords, it clears out
asdf plus all the text I pasted in.
How do I just undo the text that pasted in? Do I have to always go out of insert mode and back in before I paste text just to have the option to undo the pasted text?