Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to add a custom header to vim-startify

📅 2013-Jul-12 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ header, vim, vim-startify ⬩ 📚 Archive

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


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email