diff --git a/autoload/airline/parts.vim b/autoload/airline/parts.vim index 0c1fd668..c5ab94a1 100644 --- a/autoload/airline/parts.vim +++ b/autoload/airline/parts.vim @@ -82,10 +82,9 @@ function! airline#parts#readonly() endfunction function! airline#parts#filetype() - return &filetype + return winwidth(0) < 100 && strlen(&filetype) > 3 ? matchstr(&filetype, '...'). '…' : &filetype endfunction function! airline#parts#ffenc() return printf('%s%s%s', &fenc, &l:bomb ? '[BOM]' : '', strlen(&ff) > 0 ? '['.&ff.']' : '') endfunction -