Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Was wondering if it'd be possible to somehow show the current file I'm editing in the tabs of my screen

enter image description here

Because it'd be way easier to know what I'm switching between.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I have this (indirectly) in my ~/.vimrc:

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

It changes my terminal tab, and I assume from reading it (and the screen(1) man page) that it should work with screen as well.

share|improve this answer
That seemed to just add the current filename at the bottom row when I'm viewing the file, but not specifically in the screen tabs themselves. –  bob_cobb Sep 4 '12 at 17:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.