How can I get the file I have open in vim to display in my iTerm tab

Posted by dd on Stack Overflow See other posts from Stack Overflow or by dd
Published on 2010-01-20T23:32:37Z Indexed on 2010/04/13 1:12 UTC
Read the original article Hit count: 414

Filed under:
|
|

I can get the vim title to display on my window by doing this:

let &titlestring = expand("%:t") . " @ " . hostname()
if &term == "screen"
  set t_ts=^[k
  set t_fs=^[\
endif
if &term == "screen" || &term == "xterm"
  set title
endif

But the tabs will say "Default".

From the commandline I can do this:

echo -ne "\e]1;hello world\a"

And that'll show "Hello World" in my tabs.

Is there a way to have vim write this stuff to my tab instead of title instead?

© Stack Overflow or respective owner

Related posts about vim

Related posts about iterm