How to add a custom header to vim-startify

The vim-startify plugin can be used to display a start screen for Vim. It is pretty cool to display a custom header in the start screen. Adding such a header is pretty easy.

First, generate the text header you want to use. For example, you can use figlet to generate a beautiful ASCII art header.

Next, in your vimrc, set this header to the global variable named startify_custom_header. If there are any single quote characters, repeat it.

An example of a custom header:

let g:startify_custom_header = [
\ '  __     ___             _____ _____ ',
\ '  \ \   / (_)_ __ ___   |___  |___ / ',
\ '   \ \ / /| | ''_ ` _ \     / /  |_ \ ',
\ '    \ V / | | | | | | |   / /_ ___) |',
\ '     \_/  |_|_| |_| |_|  /_/(_)____/ ',
\ '',
\ '',
\ ]

Tried with: vim-startify 1.6, Vim 7.3.429 and Ubuntu 12.04 LTS

Advertisements

One thought on “How to add a custom header to vim-startify

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s