sponsor Vim development Vim logo Vim Book Ad

basic Tip #23: Vim xterm title

 tip karma   Rating 91/48, Viewed by 4797 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   March 1, 2001 6:40      complexity:   basic
author:   stone at snok dot org      as of Vim:   5.7

Check out your .vimrc. If 'set notitle' is an entry, comment it out with a quotation mark ("). Now your xterm should inherit the title from Vim.            e.g. 'Vim - ~/.vimrc'. This can be quite nice when programming and editing lots of files at the same time.
by [[email protected]]

 rate this tip  Life Changing Helpful Unfulfilling 

<< handle common typos for :commands | changing the default syntax highlighting >>

Additional Notes

Anonymous, October 15, 2002 14:25
Merely commenting out "set notitle" will not do it.  Vim has the xterm title off by default.  You need to put "set title" in your .vimrc.  Alternately, you could just type ":set title" from within vim.
[email protected], May 25, 2004 14:05
Thank you thank you thank you thank you thank you. ;-)
[email protected], March 12, 2005 23:45
Hi,

When I use "screen" utility, "set title" doesn't work, which means vim doesn't change the title bar at all. Does anyone know  how to make the title bar changed using "screen"?
Anonymous, June 3, 2005 3:16
hardstatus string "screen@%H: %h"
dcrosta at sccs dot swarthmore dot edu, June 15, 2005 6:09
:set title works great, but i'm having trouble changing the title options -- shouldn't :set titlestring="vim (path)/filename" work?
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Sponsored by Web Concept Group Inc. SourceForge.net Logo