Skip to content

Instantly share code, notes, and snippets.

@arsaccol
Last active April 21, 2022 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arsaccol/644bea05aa729cf33e9e5586e68ac224 to your computer and use it in GitHub Desktop.
Save arsaccol/644bea05aa729cf33e9e5586e68ac224 to your computer and use it in GitHub Desktop.
Hacky-ass script that sets up vim plugins as well as tmux.conf in newly created virtual machines (or actual machines). Might be buggy but will probably improve my quality of life.
#!/bin/bash
echo 'System is' $OSTYPE
# You should install the following packages before running this script (Debian/Ubuntu names here)
# sudo apt install -y git build-essential cmake python3-dev vim tmux
# Also, installing vim-gtk is a good hacky solution to avoid errors where YouCompleteMe says Python is not supported by vim.
echo 'Installing some stuff which may or may not be essential...'
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo "Also setting up Tmux while we're at it!"
wget -O ~/.tmux.conf https://gist.githubusercontent.com/lalilulelost/ee2ddd7ffb19676720053fa13dbb98a4/raw/a278719d7a1a91dce522c2a2ff78d86e0034a106/.tmux.conf
echo 'Download vimrc containing Vundle and plugin stuff'
wget -O ~/.vimrc https://gist.githubusercontent.com/lalilulelost/17d0138eb1d79eff650fde77b5320c17/raw/c9075dbb1d2eeda203c1ef49b2523b9e15200dce/.vimrc
echo 'Actually install Vundle...'
vim +PluginInstall +qall
echo 'Compiling and installing YCM stuff...' # Remove --all if you don't want to install useless stuff. Refer to the YCM readme in GitHub for options relevant to your language.
python3 ~/.vim/bundle/YouCompleteMe/install.py --clangd-completer --all
echo 'I think this is the end of it. Have fun!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment