Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Learn VIM habits through individual tips to the VIM title bar
VimL
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
autoload
README.rst

README.rst

VIMTip

VIMTip allows you to display custom tips in your terminal emulations title bar. This is especially useful for learning new VIM habits, which improve your daily working cycle.

To set VIMTip up, install the script and configure the following things:

  1. A list of tips to use into g:vimtip_tips
  2. Events on which the displayed tip should be changed

For example:

let g:vimtip_tips = []
call add(g:vimtip_tips, "Minimize horizon. window: <CTRL>+<w> <_>")
call add(g:vimtip_tips, "Register <*> is middle mouse clipboard")
call add(g:vimtip_tips, "Minimize vert. window: <CTRL>+<w> <|>")
call add(g:vimtip_tips, "Search in pman: <SHIFT>+<k>")
call add(g:vimtip_tips, "Jump to matching brace: <%>")

autocmd VimEnter * call vimtip#NextTip()
autocmd WinEnter * call vimtip#NextTip()

This defines 5 tips and makes a tip appear as soon as you start up VIM. In addition, the tip changes every time you switch windows. Since this would change the title of your terminal anyway, it does not disturb your normal working flow.

You can still customize your titlestring using the g:vimtip_titlestring variable. Use {tip} to place the tip where you want it. It defaults to:

let g:vimtip_titlestring = "%<%F%={tip}"

Have fun.

Something went wrong with that request. Please try again.