RE: invoking yanked register into colon command
>after having read the user-manual. For example, I do often want toname) ?
>replace a name in the text with another. What I used to do is
>selecting it with mouse and type
>Is there a way to do this with the mouse (and without retyping the
>What I want is maybe something like 'invoking a yanked register in myMe, I go to whatever I'm looking for, hit 'v', then use normal motion
commands (eg, "3e") to highlight the text in question, instead of using
If a single word, '*' will automagically highlight and search for the
word under the cursor.
From there, once you highlighted the exact pattern you want, can just
as it remembers what you just looked for. No need to reinsert it for
the 's' command.
- Gene Kwiecinski wrote:
> Me, I go to whatever I'm looking for, hit 'v', then use normal motionAnd with
> commands (eg, "3e") to highlight the text in question, instead of using
> the mouse.
> If a single word, '*' will automagically highlight and search for the
> word under the cursor.
vnoremap * y:exe 'norm! /' . escape(@@, '/*.\[$^~') . "\r"<cr>
in your .vimrc, it works for more than a single word, any stuff up to a