From 0cbb40d2c38282768838b636be75df9d69897cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Fussing=20M=C3=B8rk?= Date: Mon, 4 Nov 2019 14:50:38 +0100 Subject: [PATCH] GitGutter movement --- neovim/.config/nvim/init.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index e66ed94..b269c8e 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -2,6 +2,7 @@ syntax on filetype indent on let base16colorspace=256 +let mapleader="½" set encoding=utf-8 set clipboard=unnamed set clipboard+=unnamedplus @@ -136,7 +137,7 @@ command! -bang -nargs=? -complete=dir HFiles map :Files map :HFiles -"Mappings +" Mappings :vmap r "_dP :nmap :w :imap :wa @@ -146,6 +147,10 @@ nnoremap nnoremap nnoremap nnoremap :%!jq '.' +nmap gn (GitGutterNextHunk) " git next +nmap gp (GitGutterPrevHunk) " git previous +nmap ga (GitGutterStageHunk) " git add (chunk) +nmap gu (GitGutterUndoHunk) " git undo (chunk) "AutoCommands au BufWinEnter * set number