Wikia

Vim Tips Wiki

Changes: Get vim 5.x window in vim 6.x

Edit

Back to page

(Move categories to tip template)
(Remove html character entities)
 
Line 12: Line 12:
 
|category2=
 
|category2=
 
}}
 
}}
The format of the window title in Vim 5.x (well, at least for 5.7,.8, for Win32) used to be VIM - <full filename with path>. It's not in the win32 binary of 6.0an that I found. I want my old way back.
+
The format of the window title in Vim 5.x (well, at least for 5.7,.8, for Win32) used to be VIM - <full filename with path>. It's not in the win32 binary of 6.0an that I found. I want my old way back.
   
 
Turns out, all that it takes to get it back is
 
Turns out, all that it takes to get it back is

Latest revision as of 08:26, September 28, 2008

Tip 87 Printable Monobook Previous Next

created July 14, 2001 · complexity basic · author Leif Wickland · version 6.0


The format of the window title in Vim 5.x (well, at least for 5.7,.8, for Win32) used to be VIM - <full filename with path>. It's not in the win32 binary of 6.0an that I found. I want my old way back.

Turns out, all that it takes to get it back is

:set title titlestring=VIM\ -\ %F "make sure that the window caption setting is turned on and set caption to Vim 5.x style

Oh, however, one thing I did like about the 6.0 style is that it puts the word "help" in the title when the current buffer is a help file; so, I just tacked %h to my titlestring giving:

:set title titlestring=VIM\ -\ %F\ %h "make sure that the window caption setting is turned on and set caption to Vim 5.x style

ReferencesEdit

CommentsEdit

Around Wikia's network

Random Wiki