Vim - Copy/Paste/Cut (Change)

Card Puncher Data Processing

About

Doc: Change

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





Discover More
Card Puncher Data Processing
Vim - Line

This article is VIM command for a line Delete a line: dd Copy: see the dedicated page:



Share this page:
Follow us:
Task Runner