update the default components: fileencoding and filetype

This commit is contained in:
itchyny
2016-04-15 22:30:25 +09:00
parent b69e020756
commit ec7d944f06
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
" Filename: autoload/lightline.vim " Filename: autoload/lightline.vim
" Author: itchyny " Author: itchyny
" License: MIT License " License: MIT License
" Last Change: 2016/04/15 00:51:48. " Last Change: 2016/04/15 22:24:06.
" ============================================================================= " =============================================================================
let s:save_cpo = &cpo let s:save_cpo = &cpo
@@ -104,8 +104,8 @@ let s:_lightline = {
\ 'absolutepath': '%F', 'relativepath': '%f', 'filename': '%t', 'modified': '%M', 'bufnum': '%n', \ 'absolutepath': '%F', 'relativepath': '%f', 'filename': '%t', 'modified': '%M', 'bufnum': '%n',
\ 'spell': '%{&spell?&spelllang:"no spell"}', \ 'spell': '%{&spell?&spelllang:"no spell"}',
\ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B', \ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B',
\ 'fileencoding': '%{strlen(&fenc)?&fenc:&enc}', 'fileformat': '%{&fileformat}', \ 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}',
\ 'filetype': '%{strlen(&filetype)?&filetype:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P', \ 'filetype': '%{&ft!=#""?&ft:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P',
\ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ' \ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X '
\ }, \ },
\ 'component_visible_condition': { \ 'component_visible_condition': {

View File

@@ -4,7 +4,7 @@ Version: 0.0
Author: itchyny (https://github.com/itchyny) Author: itchyny (https://github.com/itchyny)
License: MIT License License: MIT License
Repository: https://github.com/itchyny/lightline.vim Repository: https://github.com/itchyny/lightline.vim
Last Change: 2016/04/15 22:14:01. Last Change: 2016/04/15 22:26:52.
CONTENTS *lightline-contents* CONTENTS *lightline-contents*
@@ -104,9 +104,9 @@ OPTIONS *lightline-option*
\ 'readonly': '%R', \ 'readonly': '%R',
\ 'charvalue': '%b', \ 'charvalue': '%b',
\ 'charvaluehex': '%B', \ 'charvaluehex': '%B',
\ 'fileencoding': '%{strlen(&fenc)?&fenc:&enc}', \ 'fileencoding': '%{&fenc!=#""?&fenc:&enc}',
\ 'fileformat': '%{&fileformat}', \ 'fileformat': '%{&ff}',
\ 'filetype': '%{strlen(&filetype)?&filetype:"no ft"}', \ 'filetype': '%{&ft!=#""?&ft:"no ft"}',
\ 'percent': '%3p%%', \ 'percent': '%3p%%',
\ 'percentwin': '%P', \ 'percentwin': '%P',
\ 'spell': '%{&spell?&spelllang:"no spell"}', \ 'spell': '%{&spell?&spelllang:"no spell"}',