How to replace a word with another insertion from the buffer in VIM


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
A little explain a subject.
Let's say I need to replace one word with another. I copy, I need the word team yw, then turn to the word which you want to replace...? What you need to do for replacement?
Option dw P esessno is not suitable, because the team not just dw deletes a word, she puts it in the buffer, and accordingly will replace what was there before, so a bunch of first P dw deletes a word, and then it and will stick.
You can use on the contrary, P l dw, i.e. first insert the desired word, and then to remove it, but in this case it is easy to make a mistake and delete either the word is not complete or on the contrary to capture the last character of the inserted word (if you forget to press l). Yes and a lot of that-the press is necessary, even in this short example, but if you need to replace the whole word and part word to the _ symbol for example? yt_ <go> P l dt_ — quite a lot of press(
Is there any short command ?t_ to insert with replacement.
by | 5 views

1 Answer

0 like 0 dislike
vw p
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Mar 28, 2019 by RMV1983
0 like 0 dislike
4 answers
asked Apr 14, 2019 by KeterVik
0 like 0 dislike
2 answers
asked Mar 28, 2019 by mgramin
0 like 0 dislike
6 answers
asked Mar 25, 2019 by greedykid
110,608 questions
257,186 answers
0 comments
27,211 users