Friday, April 25, 2025

Re: Auto set xfce4-terminal tab to currently edited file?

On 2025-04-25, Steven H. wrote:
> Thanks Garry. Answers below:
>
> On Thu, 24 Apr 2025 12:25:16 -0700 Gary Johnson wrote:
>
> > Try executing ":verbose set title?" to see if it's been set.
>
> This outputs 'notitle' in the status line (if that is the correct term).

Interesting. That suggests that vim thinks the window title can't
be restored, which further suggests that your vim was built without
the X11 feature, which you confirmed below.

> > If it hasn't, try setting it and see if just that fixes the problem.
>
> How do I do this, please? (sorry if it is a stupid question)

It's not. You can set it with the command:

:set title

but I don't know that that will help since your vim was build
without the X11 feature. That feature is in the normal build (see
":help :version"), so if your vim does not have it, it's probably
a tiny version, which doesn't have many features.

When you execute ":version", one of the first few lines, the one
immediately above the list of features, will show the type of build,
e.g.,

Tiny version without GUI. Features included (+) or not (-):

or

Normal version with GTK3 GUI. Features included (+) or not (-):

My guess is that yours is the tiny version.

Oh! I often forget that some distributions have a vim package built
without support for X. Why one would do that these days is beyond
me, but they do. So you may just need to install a vim package with
X11. On Ubuntu, that would be vim-gtk3. I know the name suggests
that's it's a GUI version of vim, which it is, but the vim program
it includes has support for X11.

> > Check ":verbose set t_ts?" to see what it says.
>
> It says ' t_ts=^[]2;'

That matches mine.

> > 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".
>
> It shows '-X11'.

That makes sense.

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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/20250425190002.GF30799%40phoenix.

No comments: