From 9d3c6506da7ebe18ab6222ee1a9bcad058c9662a Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Fri, 27 Sep 2013 10:34:33 -0400 Subject: [PATCH] add table of contents to help file. --- autoload/airline/themes.vim | 6 +++--- doc/airline.txt | 22 +++++++++++++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/autoload/airline/themes.vim b/autoload/airline/themes.vim index bfa76732..110a9dc3 100644 --- a/autoload/airline/themes.vim +++ b/autoload/airline/themes.vim @@ -4,9 +4,9 @@ " generates a dictionary which defines the colors for each highlight group function! airline#themes#generate_color_map(sect1, sect2, sect3, ...) let palette = { - \ 'airline_a': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , get(a:sect1 , 4 , 'bold') ] , - \ 'airline_b': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , get(a:sect2 , 4 , '' ) ] , - \ 'airline_c': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , get(a:sect3 , 4 , '' ) ] , + \ 'airline_a': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , get(a:sect1 , 4 , '') ] , + \ 'airline_b': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , get(a:sect2 , 4 , '') ] , + \ 'airline_c': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , get(a:sect3 , 4 , '') ] , \ } if a:0 > 0 diff --git a/doc/airline.txt b/doc/airline.txt index 743bae8f..26ee0301 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -1,4 +1,5 @@ *airline.txt* Lean and mean status/tabline that's light as air +*airline* _ _ _ _ ~ __ _(_)_ __ ___ __ _(_)_ __| (_)_ __ ___ ~ \ \ / / | '_ ` _ \ _____ / _` | | '__| | | '_ \ / _ \ ~ @@ -6,7 +7,26 @@ \_/ |_|_| |_| |_| \__,_|_|_| |_|_|_| |_|\___| ~ ~ ============================================================================== -INTRODUCTION *airline* +CONTENTS *airline-contents* + + 01. Intro ............................................... |airline-intro| + 02. Features ......................................... |airline-features| + 03. Name ................................................. |airline-name| + 04. Configuration ............................... |airline-configuration| + 05. Commands ......................................... |airline-commands| + 06. Customization ............................... |airline-customization| + 07. Extensions ..................................... |airline-extensions| + 08. Advanced Customization ............. |airline-advanced-customization| + 09. Funcrefs ......................................... |airline-funcrefs| + 10. Pipeline ......................................... |airline-pipeline| + 11. Writing Extensions ..................... |airline-writing-extensions| + 12. Writing Themes ..................................... |airline-themes| + 13. Troubleshooting ........................... |airline-troubleshooting| + 14. Contributions ............................... |airline-contributions| + 15. License ........................................... |airline-license| + +============================================================================== +INTRODUCTION *airline-intro* vim-airline is a fast and lightweight alternative to powerline, written in 100% vimscript with no outside dependencies.