Files
DotfilesOld/vim/cheetsheet.md
2018-01-27 15:45:54 +01:00

591 B

VIM CHEETSHEET

Generel stuff that I need to get into my muscle memory.

  • CTRL-W [hjkl] - switch to window left, above, below, right

unimpared

  • ]b - :bnext
  • [b - :bprevious
  • ]B - :bfirst
  • [B - :blast

surround

  • cs"' - changes surrouding " to '

Grepper

  • <leader>g - kick off
  • without entering anything, takes word under the cursor

GitGutter

  • ]c, [c - jump to next/prev hunk (change)
  • <leader>hs - stage hunk
  • <leader>hu - undo hunk

Debugging

  • <leader>DD - start profiling
  • <leader>DP - pause profiling, output in profile.log