MarcWeber / vim-addon-manager

manage and install vim plugins (including their dependencies) in a sane way. If you have any trouble contact me. Usually I reply within 24 hours
Other
660 stars 59 forks source link

two many "press any key to continue" when :UpdateAddons #58

Closed stardiviner closed 12 years ago

stardiviner commented 12 years ago

I have many plugins. If I execute command :UpdateAddons, Then I will need to press a lot of key to continue update. Can you let VAM automatically update next addon if no error occurs. Or save all error in buffer. the press some key to check out all errors. And I found :UninstallUnloadedAddons has same issus too.

ZyX-I commented 12 years ago

There was undocumented g:vim_addon_manager.silent_shell_commands setting. I now replaced it with g:vim_addon_manager.shell_commands_run_method documented it. With this you should add

let g:vim_addon_manager.shell_commands_run_method='system'

to your .vimrc.

stardiviner commented 12 years ago

=> On [2012-02-19 04:12:59 -0800]: ZyX-I Said:

There was undocumented g:vim_addon_manager.silent_shell_commands setting. I now replaced it with g:vim_addon_manager.shell_commands_run_method documented it. With this you should add

let g:vim_addon_manager.shell_commands_run_method='system'

to your .vimrc. after git pull in vim-addon-manager, and add upper line to my vimrc. I still get need to press a lot of ENTER. like this:

~ > vim .vimrc

Already up-to-date.

Press ENTER or type command to continue Already up-to-date.

Press ENTER or type command to continue Already up-to-date.

Press ENTER or type command to continue


Reply to this email directly or view it on GitHub: https://github.com/MarcWeber/vim-addon-manager/issues/58#issuecomment-4041525

stardiviner << =>GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html

ZyX-I commented 12 years ago

Works for me. Where did you add it? It must go before any other VAM call.

stardiviner commented 12 years ago

http://paste.ubuntu.com/848533/ here is my vimrc VAM setting example.

ZyX-I commented 12 years ago
  1. Wrong option name.
  2. It must go before any other VAM call.

    Fix this, though it does not matter here. But it makes you able to purge out all {'auto_install': 1} arguments.

ZyX-I commented 12 years ago

3. shell_commands_run_method='system' does not silence shell commands.

stardiviner commented 12 years ago

If I move options before VAM call, then vim notice me that no g:vim_addon_manager variable.

ZyX-I commented 12 years ago

If I move options before VAM call, then vim notice me that no g:vim_addon_manager variable.

What’s the problem here?

let g:vim_addon_manager={}
" Options go here

or even

let g:vim_addon_manager={'shell_commands_run_method': 'system', 'auto_install': 1, 'do_diff': 1}
stardiviner commented 12 years ago

So can not silence shell command. I do not know Vundle how to implement this, it's update command with ! can silence update all plugins. maybe they are different update ways.

ZyX-I commented 12 years ago

So can not silence shell command.

It avoids Hit-Enter prompts instead.

I do not know Vundle how to implement this, it's update command with ! can silence update all plugins. maybe they are different update ways.

Understood nothing.

clangpp commented 8 years ago

I want to avoid the "Press ENTER or type command to continue", but would like the downloading process to be shown, can you help add another mode rather than "bang" and "system" to help with that?

I think the implementation would be changing this into:

  if s:c.shell_commands_run_method[-4:] is# 'bang'
    execute '!'.a:cmd
  elseif s:c.shell_commands_run_method is# 'progress'
    execute 'silent !'.a:cmd
  elseif s:c.shell_commands_run_method is# 'system'
    call vam#Log(system(a:cmd), 'None')
  else
    throw 'Unknown run method: '.s:c.shell_commands_run_method
  endif
MarcWeber commented 8 years ago

I don't have time to work on it. Consider giving vundle or NeoBundle a try if this is too annoying. If you proivde a patch we'll apply it.

In the long run installation code should eventually moved into a full blown package manager instead.