Create function to run plugin installer

This commit is contained in:
Lucas Noki 2019-12-30 02:25:05 +01:00 committed by Marcel Schwarz
parent 2cf7445593
commit 34851105c9

View File

@ -102,6 +102,10 @@ class VimModule(AbstractModule):
for line in vimrc_content: for line in vimrc_content:
vimrc_file.write(line) vimrc_file.write(line)
def exec_plugin_manager(self):
install_plugins = "vim +PlugInstall +qall +silent"
subprocess.call(install_plugins, shell=True)
def run(self): def run(self):
self.create_folder_structure() self.create_folder_structure()
@ -109,3 +113,5 @@ class VimModule(AbstractModule):
plugin_section = self.create_plugin_section() plugin_section = self.create_plugin_section()
settings_section = self.create_setting_section() settings_section = self.create_setting_section()
self.write_vimfile(settings_section + plugin_section) self.write_vimfile(settings_section + plugin_section)
# Uncomment when in production
# self.exec_plugin_manager()