Vim - Copy/Paste/Cut (Change)

> Integrated development environment (ide) > Text Editor - Vi (VIM)

Table of Contents

1 - About

Doc: Change

2 - Copy/Cut and Paste

  • Move the cursor to the first position
  • Select:
    • characters: press v
    • line: press uppercase V
    • block: Ctrl-V
  • Move the cursor to the end position
  • Press:
    • d to cut
    • y to copy
  • Move to where you would like to paste.
  • Press:
    • P to paste before the cursor,
    • or p to paste after.

Tip:

  • d is a operator that stands for delete (ie cut)
  • y is also a operator that stands for yank (ie copy)
  • p is also a operator that stands for paste
Advertising