From 1e5757e2e76acda61d02d27af38d8c6b531cbc05 Mon Sep 17 00:00:00 2001 From: Jacob Zimmerman Date: Wed, 25 Feb 2015 03:57:29 -0500 Subject: [PATCH] Plugins vim-gitgutter and vim-fugitive These plugins make working with Git a sinch. vim-gitgutter shows a +/-/~ next to lines that have been added, removed, and modified, and also shows a summary of the number of lines affected in vim-airline's statusbar. vim-fugitive makes working with Git from within Vim incredibly easy. Here's a lit of common commands and their analogs to the normal git commands: - git add --> :Gwrite - git commit --> :Gcommit - git push --> :Gpush - git checkout --> :Gread - git blame --> :Gblame - ... many more! --- vimrc.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vimrc.vim b/vimrc.vim index 53bb1dd..9fafbb0 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -23,6 +23,10 @@ Plugin 'majutsushi/tagbar' Plugin 'kien/ctrlp.vim' Plugin 'vim-scripts/a.vim' +" ----- Working with Git ---------------------------------------------- +Plugin 'airblade/vim-gitgutter' +Plugin 'tpope/vim-fugitive' + call vundle#end() filetype plugin indent on @@ -102,3 +106,11 @@ nmap b :TagbarToggle " Uncomment to open tagbar automatically whenever possible "autocmd BufEnter * nested :call tagbar#autoopen(0) + +" ----- airblade/vim-gitgutter settings ----- +" Required after having changed the colorscheme +hi clear SignColumn +" In vim-airline, only display "hunks" if the diff is non-zero +let g:airline#extensions#hunks#non_zero_only = 1 + +