# VIM CHEETSHEET Generel stuff that I need to get into my muscle memory. * `CTRL-W [hjkl]` - switch to window left, above, below, right ## yanking * `"ay` - replace content of register 'a' * `"Ay` - append to content of register 'a' * `y` - will put stuff in the default register `""` and `"0` * `d` - will put stuff just in the default register `""` - so `"0p` will still paste the last yank * `3yy` - yank next three lines * `CTRL-r +` - paste register '+' in insert mode * `"*` - linux the PRIMARY clipboard, system clipboard on other operating systems * `"+` - the system clipboard on all operating systems ## unimpared * `]b` - :bnext * `[b` - :bprevious * `]B` - :bfirst * `[B` - :blast ## surround * `cs"'` - changes surrouding " to ' ## Grepper * `g` - kick off * without entering anything, takes word under the cursor ## GitGutter * `]c`, `[c` - jump to next/prev hunk (*c*hange) * `hs` - stage hunk * `hu` - undo hunk ## Debugging * `DD` - start profiling * `DP` - pause profiling, output in `profile.log`