VIM Replace word with contents of paste buffer?

后端 未结 9 1462
灰色年华
灰色年华 2020-12-22 15:41

I need to do a bunch of word replacements in a file and want to do it with a vi command, not an EX command such as :%s///g. I know that this is the typical way

9条回答
  •  梦毁少年i
    2020-12-22 16:11

    You can use the visual mode of vim for this. e.g. copy a word: ye and then overwrite another one with the copied word: vep

提交回复
热议问题