From 9168b73411ca054d3a9666beb9c8504bfae3146e Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 20 Jun 2017 14:14:09 +0200 Subject: [PATCH] update doc example, clarify how to truncate string --- doc/airline.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/airline.txt b/doc/airline.txt index 52b3dc57..9ff51a92 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -307,8 +307,9 @@ section. let g:airline_section_warning (ycm_warning_count, whitespace) " here is an example of how you could replace the branch indicator with - " the current working directory, followed by the filename. - let g:airline_section_b = '%{getcwd()}' + " the current working directory (limited to 10 characters), + " followed by the filename. + let g:airline_section_b = '%-0.10{getcwd()}' let g:airline_section_c = '%t' < ==============================================================================