Fandom

Vim Tips Wiki

Get vim 5.x window in vim 6.x

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

Also on Fandom

Random Wiki