From 79f036ac6b6a03a1fa388256eec38770e69a354d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 14 Jan 2021 15:11:46 +0100 Subject: [PATCH] Add ggpull functionality to vim config --- symlinks/vim/plugin/fugitive.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/symlinks/vim/plugin/fugitive.vim b/symlinks/vim/plugin/fugitive.vim index 9b56fa0..7e4687f 100644 --- a/symlinks/vim/plugin/fugitive.vim +++ b/symlinks/vim/plugin/fugitive.vim @@ -5,7 +5,13 @@ " Shorcut to push directly to current branch on origin " Similar to `ggpush` in fish config function! s:PushOrigin() - execute 'Gpush origin ' . FugitiveHead() + execute 'Git push origin ' . FugitiveHead() +endfunction + +" Shorcut to pull directly from current branch on origin +" Similar to `ggpull` in fish config +function! s:PullOrigin() + execute 'Git pull origin ' . FugitiveHead() endfunction " Generates url for creating PR for current branch