'no ft' in example

This commit is contained in:
itchyny
2013-08-23 00:04:48 +09:00
parent 261ad8c6df
commit e93fe44703

View File

@@ -331,7 +331,7 @@ Here's my setting. I use the patched font for vim-powerline.
return winwidth('.') > 60 ? &fileformat : ''
endfunction
function! MyFiletype()
return winwidth('.') > 60 ? &filetype: ''
return winwidth('.') > 60 ? (strlen(&filetype) ? &filetype : 'no ft') : ''
endfunction
function! MyFileencoding()
return winwidth('.') > 60 ? (strlen(&fenc) ? &fenc : &enc) : ''