GNOME Bugzilla – Bug 137388
dynamic title problem with vim
Last modified: 2006-07-11 01:09:52 UTC
when i start end quit vim in gnome-terminal (currently i'm using 2.5.90) the title changes to "Terminal - Terminal" afert start/quit vim again the title is "Terminal - Terminal - Terminal" and so on ... my setting is "before title" but this also happens with "afert title". the version vim i'm using is: 6.2.263
I can reproduce this (provided I don't have a bash prompt setting the xterm title...) This is due to the fact that vim does not use the xterm control sequence to find the title, but just looks at the wm title, which includes the `Terminal - ' prefix/suffix; when vim sets the title back when it exists, gnome-terminal prepends/appends its prefix/suffix and we get what we get. In fact, vim goes up the window tree looking for a window with a title set, starting at the window pointed to by the env's WINDOWID, which in gnome-terminals is the vte window. This could be worked around by having vte set the WM_NAME/WM_ICON_NAME properties on its window, but that's really really ugly. IMHO, vim should just use the xterm control sequence...
thanks for the answer - i changed the prompt-.variable in ~/.cshrc to reset the window-title to nothing before displaying the prompt. there are also the problem that after closing the midnight-commander the title will not set back to normal. reseting the title to nothing resolves also that issue.
This gets fixed as soon as (something like) my second patch on bug 141985 hits vte.
I am having the same problem with gt 2.14.2 and vim 7 ... as this was and is working in multi-gnome-terminal I would claim this is a bug in gt - or do we want to fix the world again ?
Should be fixed already. Reopen if it's not.