* Michael Scheper <[email protected]> 09.11.2009 > I've been a hard-core vim user for over a decade and I've never found an > answer for this. It's about time I post it to a forum. :-) > > I want a way to replace text with the contents of a register. > > For example, let's say I have the sentence 'The banana is green; I like > green bananas'. If I've yanked the word 'yellow' from somewhere else > into the default register, I want to be able to move the cursor to each > word 'green' in the sentence below, and change it to 'yellow'. (Yes, > normally I'd just do a one-line search-and-replace; this example is just > an illustration.) If I use cw, 'green' clobbers 'yellow' in the > register, and I don't know of a way to paste in insert mode anyhow.
Hello Michael, try the 'yankring' Plugin, which gives you per default access to the last 100 yanked or deleted text blocks. It's very configurable and since I use it, things like your request are easy to handle. Hth Michael -- Life is Xerox, and you're just a copy
signature.asc
Description: Digital signature
