Re:Everyone Who Tried to Convince Me to Use Vim Was Wrong
by barfoomoo on Thursday July 29, 2010 @08:25AM
(#1557327)
Thanks for that suggestion. Any idea why Vim behaves like this? Say I visually select something and yank it and then go on pressing p it pastes the yanked text any no of times. But, if I select a text and then try to replace it with the yanked text, I can do it only once. The next time, the yanked text seems to be removed from the register. Why this difference in behavior?
[ Parent
| on HN ]
Re:Everyone Who Tried to Convince Me to Use Vim Was Wrong
by mileszs on Thursday July 29, 2010 @08:54AM
(#1557388)
When you select some text and 'put' over it, Vim yanks the selected text into the default register. The text that you just put is still put-able via "2p, if you'd like to put it again. Vim is essentially saving that selected text for you, just in case.
I hope that answers your question.