commit 6a24483b36fd1b66502981fe597984c540547f37 parent b4ba9b3ce13b4c38474f5f0417acd583903c14f0 Author: Anders Damsgaard <andersd@riseup.net> Date: Tue, 24 Oct 2017 14:40:46 -0700 use fugitive instead of homebrew git commands Diffstat:
M | links/.vim/keybinds.vim | | | 16 | ++++++++++++---- |
M | links/.vim/plugins.vim | | | 1 | + |
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/links/.vim/keybinds.vim b/links/.vim/keybinds.vim @@ -103,10 +103,18 @@ nnoremap <silent> <C-l> :TmuxNavigateRight<CR> " equal split size nmap <leader>= <C-w>= -" Commit all changes -"nmap <leader>g :Gcommit<CR> -nmap <leader>g :Start git commit -a -v -S<CR> -nmap <leader>G :Start git commit -a -v -S && git push<CR> +" bindings to git cmd +"nmap <leader>g :Start git commit -a -v -S<CR> +"nmap <leader>G :Start git commit -a -v -S && git push<CR> + +" bindings to fugitive +nmap <leader>ga :Gwrite<CR> +nmap <leader>gm :Gmove +nmap <leader>gb :Gblame<CR> +nmap <leader>gw :Gbrowse<CR> +nmap <leader>gs :Gstatus<CR> +nmap <leader>gc :Gcommit -v -S<CR> +nmap <leader>gp :Git push<CR> " Use home row keys as Esc inoremap jk <Esc> diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -47,6 +47,7 @@ Plug 'ervandew/supertab' " complete with TAB in insert mode """""" Version control """""" Plug 'tpope/vim-fugitive' " :Gread, :Gwrite +Plug 'tpope/vim-rhubarb' " enables :Gbrowse Plug 'airblade/vim-gitgutter' " show line changes since last git commit """""" Processes """"""