7

Is the effective default value for titlestring documented somewhere? By effective, I mean the one that displays $(basename) ($(dirname)) (m of n) - GVIM1 or ... ((m) of n), even though titlestring is "actually" empty (so I guess it's some hard-coded default somewhere).

The reason is that I would like to change the m of n part to use the buffer list rather than the argument list (the latter being quite confusing when one frequently uses e.g. :bd), but keep the rest. Yes, I could probably work it out by fully reading the docs on statusline, but I'm trying to avoid that...

antony
  • 171
  • 2
  • this question could be read in two ways: "what is the exact format of the default title?," which would have to be an explanation of the c code, or "which titlestring most closely emulates vim's default title formatting?" – Mass Mar 15 '18 at 23:28
  • I am looking for something that can be emulated by setting titlestring (but with some modifications), so the second interpretation is correct. – antony Mar 15 '18 at 23:32
  • The C code is here in maketitle function. I'll try and write a VimL version of it. – 3N4N Oct 05 '22 at 18:28

0 Answers0