From 34851105c9cc9ca96f17f3c6b4bcd5526027203e Mon Sep 17 00:00:00 2001 From: Lucas Noki Date: Mon, 30 Dec 2019 02:25:05 +0100 Subject: [PATCH] Create function to run plugin installer --- modules/vim/module.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/vim/module.py b/modules/vim/module.py index fa08910..a7c0b9b 100644 --- a/modules/vim/module.py +++ b/modules/vim/module.py @@ -102,6 +102,10 @@ class VimModule(AbstractModule): for line in vimrc_content: vimrc_file.write(line) + def exec_plugin_manager(self): + install_plugins = "vim +PlugInstall +qall +silent" + subprocess.call(install_plugins, shell=True) + def run(self): self.create_folder_structure() @@ -109,3 +113,5 @@ class VimModule(AbstractModule): plugin_section = self.create_plugin_section() settings_section = self.create_setting_section() self.write_vimfile(settings_section + plugin_section) + # Uncomment when in production + # self.exec_plugin_manager()