Skip to content

Commit

Permalink
Plugins vim-gitgutter and vim-fugitive
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
jez committed Nov 12, 2016
1 parent b1d3691 commit 7fc1cab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vimrc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Plugin 'majutsushi/tagbar'
Plugin 'ctrlpvim/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
Expand Down Expand Up @@ -109,3 +113,9 @@ nmap <silent> <leader>b :TagbarToggle<CR>
" Uncomment to open tagbar automatically whenever possible
"autocmd BufEnter * nested :call tagbar#autoopen(0)


" ----- airblade/vim-gitgutter settings -----
" In vim-airline, only display "hunks" if the diff is non-zero
let g:airline#extensions#hunks#non_zero_only = 1


1 comment on commit 7fc1cab

@jez
Copy link
Owner Author

@jez jez commented on 7fc1cab Nov 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.