Vim - 4: A Guide on Copying, Removing, and Pasting

Written by artwalker | Published 2024/02/02
Tech Story Tags: vim | vim-tips | vim-editor | how-to-use-vim | learning-vim | copy-remove-and-paste | programming-for-beginners | coding-tutorial

TLDRCopy & Paste - copy current line. Paste after cursor - paste after cursor. Remove & Paster - remove current line - remove contents of line. undo - undo the contents of the line that has been removed. Use the Yank Buffer to save the contents were deleted.via the TL;DR App

Copy & Paste

  • 'yy' - copy current line
  • 'p' - paste after cursor
  • 'u' - undo
  • '3yy' then 'p'

Remove & Paster

  • 'dd' - remove current line
  • 'p' - [N]dd uses the Yank Buffer to save the contents were deleted
  • '3dd' then 'p'


Written by artwalker | Passionate about Crafting Intelligent OS & Pioneering TinyML Applications for Resource-Constrained Devices
Published by HackerNoon on 2024/02/02