mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-13 05:53:51 -05:00
use expand('%:t')
This commit is contained in:
@@ -471,7 +471,7 @@ endfunction
|
|||||||
|
|
||||||
function! MyFilename()
|
function! MyFilename()
|
||||||
return ('' != MyReadonly() ? MyReadonly() . ' ' : '') .
|
return ('' != MyReadonly() ? MyReadonly() . ' ' : '') .
|
||||||
\ ('' != expand('%t') ? expand('%t') : '[No Name]') .
|
\ ('' != expand('%:t') ? expand('%:t') : '[No Name]') .
|
||||||
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
||||||
endfunction
|
endfunction
|
||||||
```
|
```
|
||||||
@@ -535,7 +535,7 @@ function! MyFilename()
|
|||||||
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
||||||
\ &ft == 'unite' ? unite#get_status_string() :
|
\ &ft == 'unite' ? unite#get_status_string() :
|
||||||
\ &ft == 'vimshell' ? vimshell#get_status_string() :
|
\ &ft == 'vimshell' ? vimshell#get_status_string() :
|
||||||
\ '' != expand('%t') ? expand('%t') : '[No Name]') .
|
\ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
|
||||||
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
@@ -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: 2013/08/27 23:25:34.
|
Last Change: 2013/08/28 10:58:47.
|
||||||
|
|
||||||
CONTENTS *lightline-contents*
|
CONTENTS *lightline-contents*
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ In order to define your own component:
|
|||||||
return ('' != MyReadonly() ? MyReadonly() . ' ' : '') .
|
return ('' != MyReadonly() ? MyReadonly() . ' ' : '') .
|
||||||
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
||||||
\ &ft == 'unite' ? unite#get_status_string() :
|
\ &ft == 'unite' ? unite#get_status_string() :
|
||||||
\ '' != expand('%t') ? expand('%t') : '[No Name]') .
|
\ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
|
||||||
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
||||||
endfunction
|
endfunction
|
||||||
function! MyReadonly()
|
function! MyReadonly()
|
||||||
@@ -342,7 +342,7 @@ A nice example for non-patched font users.
|
|||||||
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
||||||
\ &ft == 'unite' ? unite#get_status_string() :
|
\ &ft == 'unite' ? unite#get_status_string() :
|
||||||
\ &ft == 'vimshell' ? vimshell#get_status_string() :
|
\ &ft == 'vimshell' ? vimshell#get_status_string() :
|
||||||
\ '' != expand('%t') ? expand('%t') : '[No Name]') .
|
\ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
|
||||||
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
||||||
endfunction
|
endfunction
|
||||||
function! MyFugitive()
|
function! MyFugitive()
|
||||||
@@ -374,7 +374,7 @@ A nice example for |vim-powerline| font users:
|
|||||||
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
|
||||||
\ &ft == 'unite' ? unite#get_status_string() :
|
\ &ft == 'unite' ? unite#get_status_string() :
|
||||||
\ &ft == 'vimshell' ? vimshell#get_status_string() :
|
\ &ft == 'vimshell' ? vimshell#get_status_string() :
|
||||||
\ '' != expand('%t') ? expand('%t') : '[No Name]') .
|
\ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
|
||||||
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
\ ('' != MyModified() ? ' ' . MyModified() : '')
|
||||||
endfunction
|
endfunction
|
||||||
function! MyFugitive()
|
function! MyFugitive()
|
||||||
|
|||||||
Reference in New Issue
Block a user