aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/git.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/git.vim')
-rw-r--r--plugin/git.vim12
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>