diff --git a/.idea/runConfigurations/ModuleDebugger.xml b/.idea/runConfigurations/ModuleDebugger.xml deleted file mode 100644 index 9fb8469..0000000 --- a/.idea/runConfigurations/ModuleDebugger.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/modules/vim/module.py b/modules/vim/module.py index 69237fc..83df53d 100644 --- a/modules/vim/module.py +++ b/modules/vim/module.py @@ -1,13 +1,14 @@ -from IModule import IModule +from AbstractModule import AbstractModule from subprocess import call import os import shutil -class VimModule(IModule): + +class VimModule(AbstractModule): def __init__(self): super().__init__() - def get_command(self): + def run(self): plugins = [ ("1. Colorschemes", "Plug 'https://github.com/rafi/awesome-vim-colorschemes.git'"), @@ -60,7 +61,7 @@ class VimModule(IModule): with open("testfile", "w+") as vimrc_file: vimrc_file.write("\n" + "call plug#begin('~/.vim/plugged')\n") for element in clean_plugin_list: - selection = element -1 + selection = element - 1 vimrc_file.write(plugins[selection][1] + "\n") vimrc_file.write("call plug#end()\n") @@ -76,6 +77,6 @@ class VimModule(IModule): else: make_vimdir = """cd ~/Gitlab/linux-tools/ && mkdir testdirectory && cd testdirectory && mkdir autoload && cd autoload && touch test.txt""" - call(make_vimdir, shell=True) + call(make_vimdir, shell=True) else: - print("Vim-Plug already installed!") \ No newline at end of file + print("Vim-Plug already installed!")