title: Setting titlestring variable in vim
body: <p>I was trying the following from vimrc:</p>
  
  <pre><code>func StartUp()
      let l:myArg="Binu"
      let l:out=system('echo '.l:myArg)
      echo l:out
      let &amp;titlestring=l:out
  endFunc
  </code></pre>
  
  <p>However, this does not set the title, but does print "Binu". What I am trying is to set the title of my putty terminal depending on some derived value in the environment and can change. On change I could just invoke this function and reset my putty title. Any help welcome..</p>
  
  <p>Thanks,
  Binu</p>