lazy load variables until needed (#204).

this allows users to define section variables in their vimrc.
This commit is contained in:
Bailey Ling
2013-08-31 12:57:02 -04:00
parent 7e1206469c
commit fd68997398
4 changed files with 32 additions and 13 deletions
+2
View File
@@ -1,6 +1,8 @@
" MIT License. Copyright (c) 2013 Bailey Ling.
" vim: et ts=2 sts=2 sw=2
call airline#init#vars()
function! airline#util#wrap(text, minwidth)
if a:minwidth > 0 && winwidth(0) < a:minwidth
return ''