diff options
author | xero <x@xero.nu> | 2014-05-05 15:09:26 -0400 |
---|---|---|
committer | xero <x@xero.nu> | 2014-05-05 15:09:26 -0400 |
commit | 89a2b67f2427d961bb2f0de771a0290d85e379f9 (patch) | |
tree | a30fa26360b7c3cf442689650da54865ac0f6fc3 /.vim/bundle/vim-airline/autoload/airline/deprecation.vim | |
parent | 53b47ce8258f7efe380cc9dab09826b1f0e9bc27 (diff) | |
download | dotfiles_ascii-89a2b67f2427d961bb2f0de771a0290d85e379f9.tar.xz dotfiles_ascii-89a2b67f2427d961bb2f0de771a0290d85e379f9.zip |
add vim configs -- yes i have joined the cult of vim
Diffstat (limited to '.vim/bundle/vim-airline/autoload/airline/deprecation.vim')
-rw-r--r-- | .vim/bundle/vim-airline/autoload/airline/deprecation.vim | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.vim/bundle/vim-airline/autoload/airline/deprecation.vim b/.vim/bundle/vim-airline/autoload/airline/deprecation.vim new file mode 100644 index 0000000..cf7e787 --- /dev/null +++ b/.vim/bundle/vim-airline/autoload/airline/deprecation.vim @@ -0,0 +1,32 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +function! airline#deprecation#check() + if exists('g:airline_enable_fugitive') || exists('g:airline_fugitive_prefix') + echom 'The g:airline_enable_fugitive and g:airline_fugitive_prefix variables are obsolete. Please read the documentation about the branch extension.' + endif + + let tests = [ + \ [ 'g:airline_paste_symbol', 'g:airline_symbols.paste' ], + \ [ 'g:airline_readonly_symbol', 'g:airline_symbols.readonly' ], + \ [ 'g:airline_linecolumn_prefix', 'g:airline_symbols.linenr' ], + \ [ 'g:airline_branch_prefix', 'g:airline_symbols.branch' ], + \ [ 'g:airline_branch_empty_message', 'g:airline#extensions#branch#empty_message' ], + \ [ 'g:airline_detect_whitespace', 'g:airline#extensions#whitespace#enabled|show_message' ], + \ [ 'g:airline_enable_hunks', 'g:airline#extensions#hunks#enabled' ], + \ [ 'g:airline_enable_tagbar', 'g:airline#extensions#tagbar#enabled' ], + \ [ 'g:airline_enable_csv', 'g:airline#extensions#csv#enabled' ], + \ [ 'g:airline_enable_branch', 'g:airline#extensions#branch#enabled' ], + \ [ 'g:airline_enable_bufferline', 'g:airline#extensions#bufferline#enabled' ], + \ [ 'g:airline_enable_syntastic', 'g:airline#extensions#syntastic#enabled' ], + \ [ 'g:airline_enable_eclim', 'g:airline#extensions#eclim#enabled' ], + \ ] + for test in tests + if exists(test[0]) + let max = winwidth(0) - 16 + let msg = printf('The variable %s is deprecated and may not work in the future. It has been replaced with %s. Please read the documentation.', test[0], test[1]) + echom msg[:max].'...' + endif + endfor +endfunction + |