Skip to content

Commit 1e5757e

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 8d4223f commit 1e5757e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vimrc.vim

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

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

2832
filetype plugin indent on
@@ -102,3 +106,11 @@ nmap <silent> <leader>b :TagbarToggle<CR>
102106
" Uncomment to open tagbar automatically whenever possible
103107
"autocmd BufEnter * nested :call tagbar#autoopen(0)
104108

109+
110+
" ----- airblade/vim-gitgutter settings -----
111+
" Required after having changed the colorscheme
112+
hi clear SignColumn
113+
" In vim-airline, only display "hunks" if the diff is non-zero
114+
let g:airline#extensions#hunks#non_zero_only = 1
115+
116+

0 commit comments

Comments
 (0)