Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 546 Bytes

vim.md

File metadata and controls

20 lines (18 loc) · 546 Bytes

Vim Cheat Sheet

Editor mode

  • esc to command mode.

Command mode

  • i to insert mode.
  • yy to copy current line.
  • dd to delete current line.
  • p to paste the copied or deleted text after the current line.
  • Shift + p to paste the copied or deleted text before the current line.
  • / search
    • n search next
    • Shift + n search previous
  • Move
    • Beginning of line: ^
    • End of line: $
    • First line in file: gg
    • Go to number line in file: number and then Shfit + g
    • Last line in file: Shfit + g