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 filetype indent on
let base16colorspace=256 let base16colorspace=256
let mapleader="½"
set encoding=utf-8 set encoding=utf-8
set clipboard=unnamed set clipboard=unnamed
set clipboard+=unnamedplus set clipboard+=unnamedplus
@ -146,6 +147,10 @@ nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L> nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H> nnoremap <C-H> <C-W><C-H>
nnoremap <F9> :%!jq '.'<CR> 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 "AutoCommands
au BufWinEnter * set number au BufWinEnter * set number