Skip to content

Instantly share code, notes, and snippets.

@rseyf
Last active July 10, 2022 23:04
Show Gist options
  • Save rseyf/9b538bd3e91c9e11d672b8a03520628d to your computer and use it in GitHub Desktop.
Save rseyf/9b538bd3e91c9e11d672b8a03520628d to your computer and use it in GitHub Desktop.
My VIM Customizer
# /bin/bash
# make sure this file has execution permission to run (do NOT use sudo:
# $ chmod +x vim_installer.sh
# $ ./vim_installer.sh
# =====================================================================
# install git
echo "======== VIM INSTALLER ========"
echo "MAKE SURE YOU HAVE GIT INSTALLED!"
echo "Then press any key to continue..."
read
# Setup Vundle:
echo "------------"
echo "Setting up vundle package manager..."
echo "mkdir -p ~/.vim/bundle/ ..."
mkdir -p ~/.vim/bundle/
echo "git clone https://github.com/VundleVim/Vundle.vim ..."
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
touch ~/.vimrc
echo "------------"
echo "Installing sublime editor theme for vim..."
mkdir -p ~/.vim/colors
curl https://gist.githubusercontent.com/rseyf/58dd79cbc7a555c1751fa441b0f0358c/raw/8fb4ebe7eb67eba51041e261e187bdba7b3da0ef/molokai.vim > ~/.vim/colors/molokai.vim
curl https://raw.githubusercontent.com/tomasiser/vim-code-dark/master/colors/codedark.vim > ~/.vim/colors/codedark.vim
echo "------------"
# Copy .vimrc file
echo "Creating .vimrc file..."
curl https://gist.githubusercontent.com/rseyf/b05a359878168a89fdd14c43887fd190/raw/1c37b166896a122899984ce3627d3fefde464a47/.vimrc > ~/.vimrc
echo "------------"
# Launch vim and run :PluginInstall
echo "Installing My Vim plugins listed in .vimrc file..."
vim +PluginInstall +qall
echo "Done!"
@rseyf
Copy link
Author

rseyf commented Mar 30, 2019

You can setup your customized vim environment by just copy pasting below command:

curl https://gist.githubusercontent.com/rseyf/9b538bd3e91c9e11d672b8a03520628d/raw/4c9d28e3ef322b81c9d056ca4afe7a78928a1348/vim_installer.sh | bash

VIM Screenshot after setup
If you want to customize your vundle plugins:

  • fork this gist
  • create your own .vimrc
  • add your .vimrc gist raw url address to your vim_installer.sh forked version
  • enjoy!

VIM ROCKSSSSS!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment