How to delete (desired text), delete (unwanted text) and paste (desired text) in Vim

I do not know if this problem was delayed, but this is a funny dilemma. When I want to delete text that I want to place somewhere else, but there is another group of text in this place that I do not want, I would delete this text, but in the process I copy the new clipboard to delete the previously deleted text .

Any suggestions to solve this problem?

+5
source share
5 answers

Several possible solutions:

First remove the unwanted text :)

or

, , . b:

"bd$

.

b:

"bp

, , Yarek T, :

"_d
+9

, . 54255

" " , yank.

+6

. , 1, 1 2 .. 9 . , , .

, , , 2.

a-z, , - , , .

:help "1 .

, , 1-9, :registers

+2

:

:registers

, . . . :

"1   Item1^J
"2   Item3^J
"3   Item2^J

:

"2p
+2
0

All Articles