mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-30 12:43:39 +08:00
b322ee6728
[update] test
9 lines
226 B
VimL
9 lines
226 B
VimL
scriptencoding utf-8
|
|
|
|
function! airline#formatter#short_path#format(val) abort
|
|
if get(g:, 'airline_stl_path_style', 'default') ==# 'short'
|
|
return '%{pathshorten(expand("'.a:val.'"))}%'
|
|
endif
|
|
return a:val
|
|
endfunction
|