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

vim-startify plugin for Vim

The vim-startify plugin provides a useful start screen when Vim is started without any files. By default, it shows a list of the most recently used (MRU) files of Vim. This file list can be navigated using j-k and file under cursor can be opened by pressing Enter. vim-startify can also be configured to show sessions and bookmarked files.

Installation

The vim-startify plugin can be installed using Pathogen by cloning its Github repository.

To get back the Startify opening screen anytime in Vim, type the command :Startify

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