vim复制和替换文本 [英] vim copy and replace text
本文介绍了vim复制和替换文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
让我们说我有这段文字:
Lets say that i have this text:
$test = 'lorem';
$test2= 'ipsum';
,我想复制lorem并粘贴到ipsum中。
我尝试在lorem上执行 yi'
,然后继续ipsum并执行了 ci'
,但是取而代之我与ipsum的pastebin。
and I want to copy lorem and paste into ipsum.
I tried to do yi'
on lorem and then went on ipsum and did ci'
but that replaced my pastebin with ipsum. and my previous copy was lost.
推荐答案
yi'(关于lorem),移到ipsum的i, vep ?
yi' on lorem, move to i of ipsum, vep?
这篇关于vim复制和替换文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文