vim_replace_word

Use buffer:
yw # copy your word
vep # replace your word to the current cursor

Use register:
用 register,以下用 "a 為例。
"ayw # (把 word yank 到 register a)
fh # (jump to next 'h' character )
dw # (砍掉 word)
"aP # (貼上 my)

vim
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License