Wikia

Vim Tips Wiki

Setting Clearcase View as the title of the gvim window

Talk0
1,613pages on
this wiki
Revision as of 02:48, July 20, 2009 by JohnBot (Talk | contribs)

Tip 1084 Printable Monobook Previous Next

created December 24, 2005 · complexity basic · author Shankar R · version 6.0


When working in clearcase, it would be very useful to set the title of the window to the view from which we are opening gvim.

This is very helpful for developers with more than one view and one project open at the same time.

let &titlestring = expand("$CLEARCASE_ROOT")
echo expand("$CLEARCASE_ROOT")

Comments

You must have done

set title

before setting the titlestring.


You don't need to expand environment variables in this context, so the following will also work:

let &titlestring = $CLEARCASE_ROOT

Around Wikia's network

Random Wiki