If the full path of a file is very long, you can\'t tell which file is in a given tab. so I\'m wondering is there is a way let the tab only disply the file name rather than
The other solutions only work for GUI VIM and does not work for terminal vim or embedded vim (nvim).
You can use vim-plug and vim-airline. Then, add this to your .vimrc.
call plug#begin(stdpath('data') . '/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'