GitGutter movement

This commit is contained in:
Jesper Fussing Mørk 2019-11-04 14:50:38 +01:00
parent b390eabcc3
commit 0cbb40d2c3
1 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@ syntax on
filetype indent on
let base16colorspace=256
let mapleader="½"
set encoding=utf-8
set clipboard=unnamed
set clipboard+=unnamedplus
@ -146,6 +147,10 @@ nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap <F9> :%!jq '.'<CR>
nmap <Leader>gn <Plug>(GitGutterNextHunk) " git next
nmap <Leader>gp <Plug>(GitGutterPrevHunk) " git previous
nmap <Leader>ga <Plug>(GitGutterStageHunk) " git add (chunk)
nmap <Leader>gu <Plug>(GitGutterUndoHunk) " git undo (chunk)
"AutoCommands
au BufWinEnter * set number