diff options
author | Max Christian Pohle | 2017-06-11 18:34:51 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-06-11 18:34:51 +0200 |
commit | 613d6b70a09f8aac7301c3e62ba9ed924e523ec3 (patch) | |
tree | dc34c3be449a52fe1be59c4b49b7c95a872b74db | |
parent | 2f3d9964d909fb367252a5db3f1f33dd2e9b6091 (diff) | |
download | vim-613d6b70a09f8aac7301c3e62ba9ed924e523ec3.tar.bz2 vim-613d6b70a09f8aac7301c3e62ba9ed924e523ec3.zip |
Lightline: Changed item order
-rw-r--r-- | vimrc-full | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -200,12 +200,12 @@ function! MyFiletype() | |||
200 | else | 200 | else |
201 | return &filetype | 201 | return &filetype |
202 | endfunction | 202 | endfunction |
203 | autocmd BufEnter * let b:filetype = winwidth(0) > 70 ? (strlen(&filetype) ? &filetype . ' ' . WebDevIconsGetFileTypeSymbol() : 'no ft') : '' | 203 | autocmd BufEnter * let b:filetype = winwidth(0) > 70 ? (strlen(&filetype) ? WebDevIconsGetFileTypeSymbol() . ':' . &filetype : 'no ft') : '' |
204 | 204 | ||
205 | function! MyFileformat() | 205 | function! MyFileformat() |
206 | return exists('b:fileformat') ? b:fileformat : &fileformat | 206 | return exists('b:fileformat') ? b:fileformat : &fileformat |
207 | endfunction | 207 | endfunction |
208 | autocmd BufEnter * let b:fileformat = winwidth(0) > 70 ? (&fileformat . ' ' . WebDevIconsGetFileFormatSymbol()) : '' | 208 | autocmd BufEnter * let b:fileformat = winwidth(0) > 70 ? WebDevIconsGetFileFormatSymbol() . ':' . &fileformat : '' |
209 | 209 | ||
210 | function! MyBranchname() | 210 | function! MyBranchname() |
211 | return exists('b:branchname') ? b:branchname : '' | 211 | return exists('b:branchname') ? b:branchname : '' |
@@ -221,7 +221,7 @@ let g:lightline = { | |||
221 | \ [ 'gitbranch', 'readonly' ] ], | 221 | \ [ 'gitbranch', 'readonly' ] ], |
222 | \ 'right': [ [ 'lineinfo' ], | 222 | \ 'right': [ [ 'lineinfo' ], |
223 | \ [ 'percent' ], | 223 | \ [ 'percent' ], |
224 | \ [ 'fileformat', 'fileencoding', 'filetype', 'charvaluehex' ] ], | 224 | \ [ 'fileencoding', 'fileformat', 'filetype', 'charvaluehex' ] ], |
225 | \ }, | 225 | \ }, |
226 | \ 'tabline': { | 226 | \ 'tabline': { |
227 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], | 227 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], |