$ $ linux docs

Personal Linux configuration and command reference

Vim Shortcuts

#vim #editor #shortcuts
  • h j k l - Move cursor left/down/up/right
  • w - Jump to start of next word
  • b - Jump to start of previous word
  • 0 - Jump to start of line
  • $ - Jump to end of line
  • gg - Jump to start of file
  • G - Jump to end of file

Editing

  • i - Insert mode before cursor
  • a - Insert mode after cursor
  • dd - Delete line
  • yy - Yank (copy) line
  • p - Paste after cursor
  • u - Undo
  • Ctrl+r - Redo

File Operations

  • :w - Save file
  • :q - Quit
  • :wq - Save and quit
  • :q! - Quit without saving