fix indentation.

This commit is contained in:
Bailey Ling 2013-08-30 21:58:29 +00:00
parent 93eb0389b9
commit 2d049949f0

View File

@ -54,6 +54,7 @@ function! s:airline_toggle()
au! au!
augroup END augroup END
augroup! airline augroup! airline
if exists("s:stl") if exists("s:stl")
let &stl = s:stl let &stl = s:stl
endif endif
@ -79,22 +80,22 @@ function! s:airline_toggle()
call <sid>on_window_changed() call <sid>on_window_changed()
endif endif
endif endif
endfunction endfunction
function! s:get_airline_themes(a, l, p) function! s:get_airline_themes(a, l, p)
let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:a.'*'), "\n") let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:a.'*'), "\n")
return map(files, 'fnamemodify(v:val, ":t:r")') return map(files, 'fnamemodify(v:val, ":t:r")')
endfunction endfunction
function! s:airline_theme(...) function! s:airline_theme(...)
if a:0 if a:0
call airline#switch_theme(a:1) call airline#switch_theme(a:1)
else else
echo g:airline_theme echo g:airline_theme
endif endif
endfunction endfunction
command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>) command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>)
command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle() command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle()
command! AirlineToggle call <sid>airline_toggle() command! AirlineToggle call <sid>airline_toggle()
call <sid>airline_toggle() call <sid>airline_toggle()