diff options
| author | Ariel D'ALessandro <dalessandro.ariel@gmail.com> | 2021-07-26 20:57:58 +0200 |
|---|---|---|
| committer | Ariel D'ALessandro <dalessandro.ariel@gmail.com> | 2021-07-26 20:57:58 +0200 |
| commit | 7982e2fae5defeb296c210e2aae098a8a11df25a (patch) | |
| tree | dbcc2ff9d9cec7039635fa0550bbbd02dae82b1a /plugin/git.vim | |
| download | nvim-conf-7982e2fae5defeb296c210e2aae098a8a11df25a.tar.gz nvim-conf-7982e2fae5defeb296c210e2aae098a8a11df25a.zip | |
Initialization of the repository, copy from https://github.com/adalessa/dotfiles
Diffstat (limited to 'plugin/git.vim')
| -rw-r--r-- | plugin/git.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugin/git.vim b/plugin/git.vim new file mode 100644 index 0000000..21bcc9a --- /dev/null +++ b/plugin/git.vim @@ -0,0 +1,12 @@ +nmap ]h <Plug>(GitGutterNextHunk) +nmap [h <Plug>(GitGutterPrevHunk) + +nmap ghs <Plug>(GitGutterStageHunk) +nmap ghu <Plug>(GitGutterUndoHunk) + +" nmap <Leader>gs :G<CR> +nmap <Leader>gdh :diffget //2<CR> +nmap <Leader>gdl :diffget //3<CR> + +nnoremap <leader>ga :Git fetch --all<CR> +nnoremap <leader>gl :Git pull<CR> |