define default statusline items with empty contents.

This commit is contained in:
Bailey Ling
2013-08-31 03:35:23 +00:00
parent 500ecf7cd0
commit a13c692529
3 changed files with 36 additions and 22 deletions
+6
View File
@@ -20,6 +20,12 @@ function! airline#parts#define_raw(key, raw)
call airline#parts#define(a:key, { 'raw': a:raw })
endfunction
function! airline#parts#define_empty(keys)
for key in a:keys
call airline#parts#define_raw(key, '')
endfor
endfunction
function! airline#parts#get(key)
return get(s:parts, a:key, {})
endfunction