diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index bbc140d..4122c6b 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -98,13 +98,14 @@ endf funct! s:check_bundle_name(bundle) if has_key(s:bundle_names, a:bundle.name) && \ s:bundle_names[a:bundle.name]['uri'] != a:bundle.uri - echoerr 'Vundle error: Name collision for Plugin ' . a:bundle.name_spec . + echomsg 'Vundle warning: Name collision for Plugin ' . a:bundle.name_spec . \ '. Plugin ' . s:bundle_names[a:bundle.name].spec . \ ' previously used the name "' . a:bundle.name . '"' . \ '. Skipping Plugin ' . a:bundle.name_spec . '.' return 0 elseif a:bundle.name !~ '\v^[A-Za-z0-9_-]%(\.?[A-Za-z0-9_-])*$' - echoerr 'Vundle error: Invalid plugin name: ' . a:bundle.name + echomsg 'Vundle warning: Invalid plugin name: ' . a:bundle.name . + \ '. Skipping Plugin ' . a:bundle.name_spec . '.' return 0 endif let s:bundle_names[a:bundle.name] = { 'spec' : a:bundle.name_spec, diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 79cc109..c9fcb96 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -21,7 +21,8 @@ func! vundle#installer#new(bang, ...) abort let bundles = filter(copy(bundles), '!empty(v:val)') if empty(bundles) - echoerr 'No bundles were selected for operation' + let operation = a:bang ? 'update' : 'installation' + echomsg 'Vundle warning: No (valid) plugins were selected for ' . operation return endif diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 5d56476..a1ce707 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -235,14 +235,14 @@ func! s:fetch_scripts(to) let cmd = vundle#installer#shellesc(cmd) end else - echoerr 'Error curl or wget is not available!' + echoerr 'Vundle error: Neither curl nor wget are available!' return 1 endif call system(cmd) if (0 != v:shell_error) - echoerr 'Error fetching scripts!' + echoerr 'Vundle error: Could not fetch vim-scripts list for searching' return v:shell_error endif return 0