diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 25ebe0aa..a32b8804 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -95,6 +95,10 @@ function! s:update_git_branch() endif let s:vcs_config['git'].branch = fugitive#head(s:sha1size) + if s:vcs_config['git'].branch is# 'master' && winwidth(0) < 81 + " Shorten default a bit + let s:vcs_config['git'].branch='mas' + endif endfunction function! s:display_git_branch()