mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
add vim cheetsheet
This commit is contained in:
22
vim/cheetsheet.md
Normal file
22
vim/cheetsheet.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# VIM CHEETSHEET
|
||||
|
||||
Generel stuff that I need to get into my muscle memory.
|
||||
|
||||
## 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 (*c*hange)
|
||||
* `<leader>hs` - stage hunk
|
||||
* `<leader>hu` - undo hunk
|
||||
|
||||
## Debugging
|
||||
|
||||
* `<leader>DD` - start profiling
|
||||
* `<leader>DP` - pause profiling, output in `profile.log`
|
||||
3
vimrc
3
vimrc
@@ -208,6 +208,9 @@ nnoremap <leader>r :%s#\<<C-r>=expand("<cword>")<CR>\>#
|
||||
"" fast editing of the .vimrc
|
||||
nnoremap <silent> <leader>ev :e $MYVIMRC<cr>
|
||||
|
||||
"" cheetsheet
|
||||
nnoremap <silent> <leader>ec :e ~/.vim/cheetsheet.md<cr>
|
||||
|
||||
"" turn on spell checking
|
||||
noremap <leader>spl :setlocal spell!<cr>
|
||||
"" spell checking shortcuts
|
||||
|
||||
Reference in New Issue
Block a user