From 963a1646116eeb63bf2c7f28e6a412da2cb77cf4 Mon Sep 17 00:00:00 2001 From: Lucas Noki Date: Sun, 15 Dec 2019 22:22:44 +0100 Subject: [PATCH] Add vimrc file with plugin manager block and selected plugins in beween --- modules/vim/module.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/vim/module.py b/modules/vim/module.py index ada45e3..7793f73 100644 --- a/modules/vim/module.py +++ b/modules/vim/module.py @@ -46,5 +46,9 @@ class VimModule(IModule): else: 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()