Skip to content

Commit

Permalink
install vim plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
luthes committed Jul 20, 2018
1 parent b62863d commit 4123b5e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions install_dotfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,26 @@ def create_symlinks(home_dir):
pass


def install_vim_plugins(home_dir):
def install_vim_plugins():
# Run Vim command to install plugins
print("Running Vim command to install Vim plugins, " + command)
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
try:
command = "vim +VundleInstall +qall"
print("Running Vim command to install Vim plugins, " + command)
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
except:
print("Something went wrong. Try running the command manually:"
+ command)


def main():
#Expand Home Directory
# We should check if system is Mac or Linux, and then branch from there.
home_dir = os.path.expanduser('~')
command = "vim +PluginInstall +qall"
check_packages()
clone_repos(home_dir)
install_vim_plugins()

create_symlinks("/home/steven")


Expand Down

0 comments on commit 4123b5e

Please sign in to comment.