Add vimrc file with plugin manager block and selected plugins in beween

This commit is contained in:
Lucas Noki 2019-12-15 22:22:44 +01:00 committed by Marcel Schwarz
parent ef0c7de0da
commit 963a164611

View File

@ -46,5 +46,9 @@ class VimModule(IModule):
else: else:
vimrc_file = open("testfile", "w+") vimrc_file = open("testfile", "w+")
vimrc_file.write(plugins[selection][1]) vimrc_file.write("\n" + "call plug#begin('~/.vim/plugged')\n")
for element in clean_plugin_list:
selection = element -1
vimrc_file.write(plugins[selection][1] + "\n")
vimrc_file.write("call plug#end()\n")
vimrc_file.close() vimrc_file.close()