I recently got to know that useful info can be shown in title of bash terminal when editing files using vim. Adding below displays file name, path of the file being edited.
set title
But on exiting vim, the title is set to 'Thanks for flying vim'. I have different title set for each bash terminal and would like it to be restored once I close the vim?
Any way to change this behaviour of vim?
:echo has('X11')
?Thanks for flying vim
, it can't be reset again. This is said to be for security reasons. Refer:help title
.0
.