Cut and paste in Vim editor
Here is the simple step by step guideline to cut and paste in Vim editor.
- Press esc if vim editor in insert mode
- Position the cursor where you want to start cutting.
- Press v to select the characters and move the cursor at end of character you want to cut. (Alternatively you can select uppercase V to select whole lines, or Ctrl-v to select the rectangular blocks.)
- Press d to cut (or y to copy).
- Move to cursor where you would like to paste.
- Press P to paste before the cursor, or p to paste after.
(Visited 473 times, 5 visits today)