3

I'm using vim with airline. I like that airline shows me the git branch, but I don't want it to show me the lines added/removed/changed. What should I add to my ~/.vimrc file to change that? I know I need to set g:airline_section_b but I'm not quite sure what to set it to.

I tried this, but the syntax is clearly wrong, because it didn't work.

let g:airline_section_b = airline#section#create(['branch'])
prajmus
  • 3,171
  • 3
  • 31
  • 41
Lorin Hochstein
  • 57,372
  • 31
  • 105
  • 141

1 Answers1

9

From :help airline:

-------------------------------------                        *airline-hunks*
vim-gitgutter <https://github.com/airblade/vim-gitgutter>                   
vim-signify <https://github.com/mhinz/vim-signify>                          
changesPlugin <https://github.com/chrisbra/changesPlugin>                   

* enable/disable showing a summary of changed hunks under source control.
let g:airline#extensions#hunks#enabled = 1

So add

let g:airline#extensions#hunks#enabled=0

to your ~/.vimrc and restart vim.

DavidEG
  • 5,857
  • 3
  • 29
  • 44