Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created June 29, 2013 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpaca-tc/5891009 to your computer and use it in GitHub Desktop.
Save alpaca-tc/5891009 to your computer and use it in GitHub Desktop.
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'Shougo/git-vim'
NeoBundle 'kmnk/vim-unite-giti'
" fugitive
nnoremap <silent>gb :<C-U>Gblame<CR>
nnoremap <silent>gm :<C-U>Gcommit<CR>
nnoremap <silent>gM :<C-U>Gcommit --amend<CR>
" git-vim
nnoremap <silent>ga :<C-U>GitAdd<CR>
nnoremap gD :<C-U>GitDiff<Space>
nnoremap <silent>gd :<C-U>GitDiff HEAD<CR>
" unite-giti
nnoremap <silent>gl :<C-U>Unite -no-start-insert -horizontal giti/log<CR>
nnoremap <silent>gs :<C-U>Unite -no-start-insert -horizontal giti/status<CR>
nnoremap <silent>gh :<C-U>Unite -no-start-insert giti/branch_all<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment