Skip to content

Commit 7fc1cab

Browse files
committed
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 <file name> --> :Gread - git blame --> :Gblame - ... many more!
1 parent b1d3691 commit 7fc1cab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vimrc.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Plugin 'majutsushi/tagbar'
2424
Plugin 'ctrlpvim/ctrlp.vim'
2525
Plugin 'vim-scripts/a.vim'
2626

27+
" ----- Working with Git ----------------------------------------------
28+
Plugin 'airblade/vim-gitgutter'
29+
Plugin 'tpope/vim-fugitive'
30+
2731
call vundle#end()
2832

2933
filetype plugin indent on
@@ -109,3 +113,9 @@ nmap <silent> <leader>b :TagbarToggle<CR>
109113
" Uncomment to open tagbar automatically whenever possible
110114
"autocmd BufEnter * nested :call tagbar#autoopen(0)
111115

116+
117+
" ----- airblade/vim-gitgutter settings -----
118+
" In vim-airline, only display "hunks" if the diff is non-zero
119+
let g:airline#extensions#hunks#non_zero_only = 1
120+
121+

0 commit comments

Comments
 (0)