To set a tmux title in vim, you can do something like:
if hastmux == 'true' || &term == "screen" || &term == "screen-256color"
set t_ts=^[]0;
set t_fs=^G
endif
However, to update the window name, you need
if hastmux == 'true' || &term == "screen" || &term == "screen-256color"
set t_ts=^[k
set t_fs=^G
endif
Is there a way to specify two t_ts
, or rather, to chain two ANSI codes together? I haven't found one yet.