mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Allow to define own path for short_path formatter
let g:airline#extensions#tabline#formatter = 'short_path' let g:airline#extensions#tabline#fnamemod = ':h' Update short_path documentation
This commit is contained in:
@@ -1321,6 +1321,13 @@ Note: Not displayed if the number of tabs is less than 1
|
||||
|
||||
let g:airline#extensions#tabline#formatter = 'short_path'
|
||||
|
||||
" `short_path` can also display file name as relative to the current
|
||||
" directory, if possible
|
||||
let g:airline#extensions#tabline#fnamemod = ':h'
|
||||
|
||||
" or display file name as relative to the home directory, if possible
|
||||
let g:airline#extensions#tabline#fnamemod = ':~:h'
|
||||
|
||||
* defines the customized format() function to display tab title in tab mode. >
|
||||
let g:airline#extensions#tabline#tabtitle_formatter = 'MyTabTitleFormatter'
|
||||
<
|
||||
|
||||
Reference in New Issue
Block a user