sponsor Vim development Vim logo Vim Book Ad

Vim Title Formatter : Formats the gvim instance titlebar string for efficiency

 script karma  Rating 11/7, Downloaded by 692  Comments, bugs, improvements  Vim wiki

created by
Densel Santhmayor
 
script type
utility
 
description
This simple script formats the title string of the gvim/vim instance in the following format:

<servername/user-defined title> | <current filename> (<filepath>)

A user-defined title will take precedence over the servername. If the servername and user-defined title are both not defined or blank, then the title is simply

<filename> (<filepath>)

If you ever work on multiple projects (each with its files open in a single gvim instance), then using this script, a glance will tell you which instance you're looking at (based on servername or user-defined title)

:SetVimTitleString <titlestring>

will set the title of the window.

:ClearVimTitleString

will clear the title of the window.
 
install details
Simply copy the file into your .vim/plugin directory.

:SetVimTitleString <titlestring>

will set the title of the window.

:ClearVimTitleString

will clear the title of the window.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
titleformatter.vim 0.1 2010-03-30 6.0 Densel Santhmayor Initial upload
ip used for rating: 3.146.221.52

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github