On 2025-04-24, Steven H. wrote: > On Thu, 24 Apr 2025 10:38:31 -0700 Gary Johnson wrote: > > > It works for me with no options manually set: > > > > $ vim -N -u NONE -i NONE testfile > > Doesn't work on Debian 12 and xfce-4 terminal 1.0.4. > Any idea why?
Not off-hand. We could start by looking at ":help 'title'. *'title'* *'notitle'* 'title' boolean (default off, on when title can be restored) global Try executing ":verbose set title?" to see if it's been set. If it hasn't, try setting it and see if just that fixes the problem. When on, the title of the window will be set to the value of 'titlestring' (if it is not empty), or to: filename [+=-] (path) - VIM Where: filename the name of the file being edited - indicates the file cannot be modified, 'ma' off + indicates the file was modified = indicates the file is read-only =+ indicates the file is read-only and modified (path) is the path of the file being edited - VIM the server name |v:servername| or "VIM" Only works if the terminal supports setting window titles (currently Amiga console, Win32 console, all GUI versions and terminals with a non-empty 't_ts' option - these are Unix xterm and iris-ansi by default, where 't_ts' is taken from the builtin termcap). We know that xfce-4-terminal supports this. Maybe 't_ts' is not being set correctly. Check ":verbose set t_ts?" to see what it says. *X11* When Vim was compiled with HAVE_X11 defined, the original title will be restored if possible. The output of ":version" will include "+X11" when HAVE_X11 was defined, otherwise it will be "-X11". This also works for the icon name |'icon'|. That would be good to check, too, unless, of course, that particular Vim works in other terminals. Does it? Also, I don't know if HAVE_X11 affects whether the title can be set. That seems more of a terminal and terminfo thing But: When Vim was started with the |-X| argument, restoring the title will not work (except in the GUI). If the title cannot be restored, it is set to the value of 'titleold'. You might want to restore the title outside of Vim then. When using an xterm from a remote machine you can use this command: > rsh machine_name xterm -display $DISPLAY & ssh -X machine_name xterm & < then the WINDOWID environment variable should be inherited and the title of the window should change back to what it should be after exiting Vim. That's a start, anyway. Regards, Gary -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/20250424192516.GE30799%40phoenix.