Changing Vim’s Title
Vim’s statusline
is often used to display the name of the currently edited file. Another way to do this is by setting a titlestring
:
" enable setting title
set title
" configure title to look like: Vim /path/to/file
set titlestring=VIM:\ %-25.55F\ %a%r%m titlelen=70