# unable to install vim plugin via shell module

**URL:** <https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988>\
**Category:** Ansible Project\
**Created:** [January 16, 2020, 2:19am UTC](https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988 "2020-01-16T02:19:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Chang](https://avatars.discourse-cdn.com/v4/letter/e/e68b1a/32.png) [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Post date:** [January 16, 2020, 2:19am UTC](https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988/1 "2020-01-16T02:19:41Z")

</div>

I want to install vim plugins with ansible shell module

the task is quite simple as follow

> - name: install vim vundle plugin  
> shell: “vim +PluginInstall +qall”

but the playbook will hang at this task like forever.

even with -vv or -vvv , there`s no more detail log , it just hangs !

any suggestions ??

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [January 20, 2020, 5:20pm UTC](https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988/2 "2020-01-20T17:20:45Z")

</div>

When you run the shell module Ansible would use non-interactive shell.  
Non-interactive shell read very few environment files so the environment variables vim expect is probably not there.
