From 687e81de3a9b8eca655fb4c16261ca30fbe482ac Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sat, 27 Jan 2018 00:47:29 +0100 Subject: [PATCH] add vim cheetsheet --- vim/cheetsheet.md | 22 ++++++++++++++++++++++ vimrc | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 vim/cheetsheet.md diff --git a/vim/cheetsheet.md b/vim/cheetsheet.md new file mode 100644 index 0000000..b943f16 --- /dev/null +++ b/vim/cheetsheet.md @@ -0,0 +1,22 @@ +# VIM CHEETSHEET + +Generel stuff that I need to get into my muscle memory. + +## 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` diff --git a/vimrc b/vimrc index 21aa0ee..bfb2a21 100644 --- a/vimrc +++ b/vimrc @@ -208,6 +208,9 @@ nnoremap r :%s#\<=expand("")\># "" fast editing of the .vimrc nnoremap ev :e $MYVIMRC +"" cheetsheet +nnoremap ec :e ~/.vim/cheetsheet.md + "" turn on spell checking noremap spl :setlocal spell! "" spell checking shortcuts