From 9e25f52c6f9ca163da887debe60fd0f0f1603e05 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 23 Jan 2016 22:09:37 +0100 Subject: [PATCH] clarify how to add custom parts to the statusline --- doc/airline.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/airline.txt b/doc/airline.txt index 1f54e85..5005d3b 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -664,6 +664,10 @@ greater than a minimum width. > Parts can be configured to be visible conditionally. > call airline#parts#define_condition('foo', 'getcwd() =~ "work_dir"') < + +Now add part "foo" to section section airline_section_y: > + let g:airline_section_y = airline#section#create_right(['ffenc','foo']) +< Note: Part definitions are combinative; e.g. the two examples above modify the same `foo` part.