From c095a48aad687b3c215af0fb95f71579127438bf Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 25 Jul 2013 22:48:15 +0000 Subject: [PATCH] add documentation about airline_exclude_funcrefs --- doc/airline.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/airline.txt b/doc/airline.txt index 28768348..31c38921 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -173,7 +173,6 @@ with the usual statusline syntax. If there is a particular plugin or filetype that is not supported, you can extend it by adding a function reference to the global array. Here is an example that you could add to your vimrc: - > function! MyPlugin() if &filetype == 'MyPluginFileType' @@ -185,6 +184,15 @@ example that you could add to your vimrc: call add(g:airline_window_override_funcrefs, function('MyPlugin')) < +In a similar fashion, you can define a function to exclude a window from +having its statusline modified. +> + function! ExcludeFoo() + return &filetype == 'FooType' + endfunction + call add(g:airline_exclude_funcrefs, function('ExcludeFoo')) +< + ============================================================================== WRITING THEMES *airline-themes*