Skip to content

Instantly share code, notes, and snippets.

@prometheusaiolos
Last active November 23, 2023 06:15
Show Gist options
  • Save prometheusaiolos/27ce1c4720b5ad7c88a10bdde0e657ff to your computer and use it in GitHub Desktop.
Save prometheusaiolos/27ce1c4720b5ad7c88a10bdde0e657ff to your computer and use it in GitHub Desktop.
my vim setup script
#!/bin/bash
# Update package list
sudo apt-get update
# Install Vim
echo "Installing Vim..."
sudo apt-get install -y vim
# Install other dependencies (if any)
# Fetch .vimrc from the provided Gist URL
echo "Fetching .vimrc configuration..."
VIMRC_URL="https://gist.githubusercontent.com/logmedaily/c9668c2e7351c76a73bd0c9a2102e0da/raw/07e47bf04d2d3ea4d47548e06e20228151e724d8/vim.rc"
curl -fLo ~/.vimrc --create-dirs $VIMRC_URL
# Install vim-plug
echo "Installing vim-plug..."
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Install Vim plugins
echo "Installing Vim plugins..."
vim +'PlugInstall --sync' +qa
echo "Vim setup complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment