Skoči na vsebino

vim

Moji zapiski, ko se navajam uporabljati vim. Pišem jih v neovim.

Cheat Sheets

Exiting

  • Save and quit - :wq
  • Save - :w
  • Quit - :q
  • Quit, lose changes - :q!

Editing

  • Insert mode - i
  • New line after current line - o
  • New line before current line - O
  • Append; append at end of line - a; A
  • Delete character - x
  • Delete line (and copy) - dd
  • Undo - u
  • Left; down; up; right - h; j; k; l
  • Word back; word forward; end of word - b; w; e
  • Start of line; end of line - 0; $
  • Start of file; end of file - gg; G
  • Top; bottom of screen - H; L

Clipboard

  • Visual select mode - v
  • Copy (yank) - y
  • Copy (yank) current line - yy
  • Paste after; before - p; P
  • Paste from system clipboard - "+p

Settings

  • Reload config - :source $MYVIMRC
  • Health check - :checkhealth

Plug-ins