Afficher un message
Vieux 25/03/2008, 05h51   #1
Michael B Allen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut vi filename in xterm title

I use vim "minimal" which apparently does not support the 'set title' command.

Can anyone recommend a method for setting the xterm title to the filename being edited by vi?

If vi exported FILENAME it would be easy to setup an alias for vi that called the following before launching vi:

PROMPT_COMMAND='echo -ne "\033]0;${FILENAME}\007"'

But I suspect there is a way to do it using vi and I just don't know about it.

Ideas?

Mike
  Réponse avec citation
 
Page generated in 0,04843 seconds with 9 queries