1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:20:04 +08:00

Catch errers if airline has not been installed

This commit is contained in:
wsdjeg 2017-04-22 10:56:58 +08:00
parent cc454b8ad0
commit 1bc506f3a7

View File

@ -14,4 +14,7 @@ function! MyPlugin(...)
"let w:airline_render_right = 0 "let w:airline_render_right = 0
endif endif
endfunction endfunction
call airline#add_statusline_func('MyPlugin') try
call airline#add_statusline_func('MyPlugin')
catch
endtry