#!/bin/bash # For Linuxbrew sudo apt-get -y install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev # For YouCompleteMe sudo apt-get -y install python-dev # General sudo apt-get -y install zip unzip # Ship latest Vim cd $HOME sudo apt-get remove vim sudo apt-get -y install mercurial ncurses-dev hg clone https://vim.googlecode.com/hg/ vim cd vim/src # Setup python 3.7 # If apt-get update fails, then remove unnecessary/old ppas from /etc/apt/sources.list.d/* cd /usr/lib/python3/dist-packages/ sudo ln -s apt_pkg.cpython-35m-x86_64-linux-gnu.so apt_pkg.so sudo apt update; sudo apt install software-properties-common; sudo add-apt-repository ppa:deadsnakes/ppa sudo ln -s python3.7 ./python3 sudo apt-get update && sudo apt-get install python3.7 sudo ./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu --enable-perlinterp=yes --enable-luainterp=yes --enable-gui=gtk2 --enable-cscope --enable-rubyinterp sudo make && sudo make uninstall && sudo make install cd $HOME sudo rm -rf vim # MacOS - Vim Setup Instructions # Python 3.9.2 Setup brew install pyenv ctags htop export PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.9.2 pyenv version echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc\n echo -e '3.9.2\n' > ~/.pyenv/version exec zsh python3 -V # Vim Setup Instructions sudo chown -R $(whoami) /usr/local/bin /usr/local/lib /usr/local/sbin brew install cmake gcc git clone https://github.com/vim/vim sudo make distclean sudo ./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-python3interp=yes --with-python3-command=/Users/username/.pyenv/versions/3.9.2/bin/python3 --with-python3-config-dir=$(/Users/username/.pyenv/versions/3.9.2/bin/python3-config --configdir) --enable-perlinterp=yes --enable-luainterp=yes --enable-gui=gtk2 --enable-cscope --enable-rubyinterp sudo make && sudo make uninstall && sudo make install echo -e 'alias vim=/usr/local/bin/vim' >> ~/.zshrc # Download col.zip from here https://github.com/kidambisrinivas/rc/blob/master/col.zip and move to ~/.vim and unzip mkdir ~/.vim # Install vim plug curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim # Copy vimrc from this repo and run :PlugInstall # Install YouCompleteMe cd ~/.vim/plugged/YouCompleteMe/ python3 install.py