add documentation about airline_exclude_funcrefs

This commit is contained in:
Bailey Ling 2013-07-25 22:48:15 +00:00
parent bce1632c42
commit c095a48aad
1 changed files with 9 additions and 1 deletions

View File

@ -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*