💻 Software
Copy, delete, then paste in Vim
Fresh5 days ago
Mar 15, 20266887 viewsConfidence Score0%
0%
Problem
I just started with Vim yesterday and am having trouble understanding copy & paste. I understand to copy I enter visual mode, highlight and then yank. I then move to the line I wish to paste onto, but more often then not I need to delete some text from this line. I do this using or . This then resu…
Error Output
$foo = $this->foo->property; thislineuses($foo);
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Copy, delete, then paste in Vim
Low Risk
Take a look at . The default yank or delete goes into a place called a register (a register named ). If you need to delete some text before you paste, you need to avoid overwriting register x, as you've discovered. Fortunately, you can use any other…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix