Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

I have added a map for git-push #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Git-vim provides:
[<Leader>ga] :GitAdd
[<Leader>gA] :GitAdd <cfile>
[<Leader>gc] :GitCommit
[<Leader>gp] :GitPush
[<Leader>gP] :GitPullRebase

=== In git-status buffer
[<Enter>] :GitAdd <cfile>
Expand Down
3 changes: 2 additions & 1 deletion plugin/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ if !exists('g:git_no_map_default') || !g:git_no_map_default
nnoremap <Leader>ga :GitAdd<Enter>
nnoremap <Leader>gA :GitAdd <cfile><Enter>
nnoremap <Leader>gc :GitCommit<Enter>
nnoremap <Leader>gp :GitPullRebase<Enter>
nnoremap <Leader>gp :GitPush<Enter>
nnoremap <Leader>gP :GitPullRebase<Enter>
endif

" Ensure b:git_dir exists.
Expand Down