Hello,

Gary Johnson wrote:
> On 2006-05-06, Sven Brueggemann <[EMAIL PROTECTED]> wrote:
>> But when diffing two versions of a file that are both
>> saved to temp files (say temp1.txt and temp2.txt) it's
>> often hard to say which is which.
>> The VCS can provide window titles for both files, e.g.
>> "This is revision 10 of foobar.txt" for temp1.txt and
>> "This is revision 22 of foobar.txt" for temp2.txt.

> Here is a sketchy outline of a solution.  Use an autocommand to set
> a buffer-local variable (e.g., b:title) to the title string provided
> by your VCS. 
> Set the 'statusline' option to call a function instead
> of displaying the file name directly.  In that function, return the
> value of that buffer-local variable if it exists

> One way to solve the "set titlestring" problem is to use "let
> &titlestring = " instead.  This allows you to quote the spaces as
>     let &titlestring = "Title with Spaces"
> instead of
>     set titlestring=Title\ with\ Spaces

Thanks for your reply.

The VCS provides the window titles as command line options 
(it's configurable where and how, but the title strings are
always in quotes) and I haven't been able to put these into
variables (let alone buffer local ones) or into any options
that seemed suitable for this.
If you could give me a hint on how to do that, your function
is exactly what I wanted.

Kind regards

Sven

Reply via email to