diff --git a/modules/vim/module.py b/modules/vim/module.py index 2db11e2..af71370 100644 --- a/modules/vim/module.py +++ b/modules/vim/module.py @@ -54,16 +54,10 @@ class VimModule(AbstractModule): print("\033[4mYour selection:\033[0m") [print(x) for x in selected_plugins] - try: - index = vimrc_content.index("call plug#begin('~/.vim/plugged')\n") + 1 - for plugin in selected_plugins: - vimrc_content.insert(index, plugins[plugin] + "\n") - - except ValueError: - vimrc_content.append("call plug#begin('~/.vim/plugged')\n") - for element in selected_plugins: - vimrc_content.append(plugins[element] + "\n") - vimrc_content.append("call plug#end()\n") + vimrc_content.append("call plug#begin('~/.vim/plugged')\n") + for element in selected_plugins: + vimrc_content.append(plugins[element] + "\n") + vimrc_content.append("call plug#end()\n") return vimrc_content