Skip to main content

Vim

ShortcutDescription
Duplicate lineyy (yank line) , p (paste)
Copy line to systemshit + v (to select), yy (yank line)
Add new lineo
Visual modev
Copy chars selectedy (yank)
Visual block modectrl + V

How to

Add text to multiple lines:

  1. Visual block mode
  2. Select where to change
  3. Press I
  4. Perform the change in one line
  5. Press ESC
  6. The change will propagate