diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index b08190c..a0ea15a 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -9,6 +9,15 @@ function! s:find_formatters(...) " Support composite filetypes by replacing dots with underscores let type = substitute(type, "[.]", "_", "g") + " Warn for backward incompatible configuration + let old_formatprg_var = "g:formatprg_".type + let old_formatprg_args_var = "g:formatprg_args_".type + let old_formatprg_args_expr_var = "g:formatprg_args_expr_".type + if exists(old_formatprg_var) || exists(old_formatprg_args_var) || exists(old_formatprg_args_expr_var) + echom "WARNING: the options g:formatprg_, g:formatprg_args_ and g:formatprg_args_expr_ are no longer supported as of June 2015. Please check the README for help on how to configure your formatters." + endif + + " Detect configuration let formatters_var = "g:formatters_".type let b:formatters = []