Skip to content

Instantly share code, notes, and snippets.

@mikekwright
Created November 6, 2013 22:16
Show Gist options
  • Save mikekwright/7345118 to your computer and use it in GitHub Desktop.
Save mikekwright/7345118 to your computer and use it in GitHub Desktop.
This is the setup-vim command that I use to install the different vim plugins I like to have.
#!/bin/bash
# Move to the vim directory for this
cd $HOME/.vim/bundle || echo "You need to create the directory ~/.vim/bundle"; exit 1;
function install_plugin()
{
if [ -d "$1" ]; then
echo "Updating $1"
cd $1
git checkout HEAD --force
git pull
cd ..
else
echo "Installing $1"
git clone $2 $1
fi
}
### Install the vim pathogen which is the first item to run
#
install_plugin vim-pathogen https://github.com/tpope/vim-pathogen
### Install the next most commonly used vim plugins
# A tree explorer plugin for vim
install_plugin nerdtree https://github.com/scrooloose/nerdtree
# Buffer Explorer / Browser
install_plugin bufexplorer.zip https://github.com/vim-scripts/bufexplorer.zip
# Vim plugin for previewing markup files (markdown, rdoc, textile, html)
install_plugin vim-preview https://github.com/greyblake/vim-preview
# Ruby on Rails power tools
install_plugin vim-rails https://github.com/tpope/vim-rails
# Vim/Ruby configuration Files
install_plugin vim-ruby https://github.com/vim-ruby/vim-ruby
# Refactoring tool for Ruby in Vim
install_plugin vim-ruby-refactoring https://github.com/ecomba/vim-ruby-refactoring
# Vim syntax highlight and snippets that helps coding application based in Sinatra micro-framework
install_plugin vim-ruby-sinatra https://github.com/hallison/vim-ruby-sinatra
# switch Ruby version from inside Vim
install_plugin vim-rvm https://github.com/tpope/vim-rvm
# Scala vim
install_plugin vim-scala https://github.com/derekwyatt/vim-scala
# Vim plugin that displays tags in a window, ordered by class, etc
install_plugin tagbar https://github.com/majutsushi/tagbar
# Tools for fast XHTML and CSS coding
install_plugin zen-coding https://github.com/sergeche/zen-coding
#
install_plugin bash-support.vim https://github.com/vim-scripts/bash-support.vim
#
install_plugin gtags-multiwindow-browsing https://github.com/vim-scripts/gtags-multiwindow-browsing
#
install_plugin surround.vim https://github.com/vim-scripts/surround.vim
#
install_plugin Syntastic https://github.com/vim-scripts/Syntastic
# ocaml.vim - vim conceal enhancement for ocaml
install_plugin vim-ocaml-conceal https://github.com/vim-scripts/vim-ocaml-conceal
# Syntax highlighting for Django templates
install_plugin django.vim https://github.com/vim-scripts/django.vim
# The Erlang plugin for Vim
install_plugin Vimerl https://github.com/vim-scripts/Vimerl
# Vim Markdown runtime files
install_plugin vim-markdown https://github.com/tpope/vim-markdown
# buffer/file/command/tag/etc explorer with fuzzy matching
install_plugin FuzzyFinder https://github.com/vim-scripts/FuzzyFinder
install_plugin L9 https://github.com/vim-scripts/L9
# This is a tetris game inside of vim (kind of cool)
install_plugin TeTrIs.vim https://github.com/vim-scripts/TeTrIs.vim
### Themes for VIM
# programming theme for gvim
install_plugin pw https://github.com/vim-scripts/pw
# a colorscheme strangely reminiscent of Vibrant Ink for a certain OS X editor
install_plugin vim-vividchalk https://github.com/tpope/vim-vividchalk
### These plugins require some execution to install
# A quick notetaking plugin
install_plugin vim-pad https://github.com/fmoralesc/vim-pad
if [ ! -d "$HOME/.notes" ]; then
mkdir $HOME/.notes
fi
# HTML5 omnicomplete and syntax
install_plugin html5.vim https://github.com/othree/html5.vim
cd html5.vim
make install
cd ..
# This is a tool that works like sublime text find file
install_plugin ctrlp.vim https://github.com/kien/ctrlp.vim
# This is a color scheme that looks a lot like sublime text
install_plugin xoria256.vim https://github.com/vim-scripts/xoria256.vim
# This is a beautiful color scheme with lots of options and support
# http://ethanschoonover.com/solarized
# (Repo for all ides - git://github.com/altercation/vim-colors-solarized.git)
install_plugin solarized https://github.com/altercation/vim-colors-solarized
### These are some vim plugins that I don't need right now
##
# Fast file navigation for VIM( Replaced by ctrlp)
#install_plugin Command-T https://github.com/wincent/Command-T
#install_plugin textile.vim https://github.com/timcharper/textile.vim.git
## Plugin for the Perl module / CLI script 'ack'
#install_plugin ack.vim https://github.com/vim-scripts/ack.vim.git
## Lightweight support for Ruby's Bundler
#install_plugin vim-bundler https://github.com/tpope/vim-bundler.git
## CoffeeScript support for vim
#install_plugin vim-coffee-script https://github.com/kchmck/vim-coffee-script.git
## Vim Jade template engine syntax highlighting and indention
#install_plugin vim-jade https://github.com/digitaltoad/vim-jade.git
## Syntax file for jQuery in VIM
#install_plugin jquery.vim https://github.com/nono/jquery.vim.git
## extended % matching for HTML, LaTeX and many other languages
#install_plugin matchit.zip https://github.com/vim-scripts/matchit.zip.git
## A vim plugin making it more convenient to compile or run a single source file
#install_plugin SingleCompile https://github.com/xuhdev/SingleCompile.git
## Aims to be a concise vim script that implements some of TextMate's snippets features in Vim
#install_plugin snipmate.vim https://github.com/msanders/snipmate.vim.git
##Syntax Highlighting for Stylus
#install_plugin vim-stylus https://github.com/wavded/vim-stylus.git
## Perform all your vim insert mode completions with Tab
#install_plugin supertabl https://github.com/ervandew/supertab.git
## A custom text object for selecting ruby blocks
#install_plugin vim-textobj-rubyblock https://github.com/nelstrom/vim-textobj-rubyblock.git
## Support for user-defined text objects
#install_plugin vim-textobj-user https://github.com/kana/vim-textobj-user.git
## Just a development environment for VIM
#install_plugin vjde https://github.com/cespare/vjde.git
## ghetto HTML/XML mappings (formally allml.vim)
#install_plugin vim-ragtag https://github.com/tpope/vim-ragtag.git
## Map keys ')' and ']' to perform automatic formatting of parentheses content
#install_plugin Align.vim https://github.com/vim-scripts/Align.vim.git
## Vim Cucumber runtime files
#install_plugin vim-cucumber https://github.com/tpope/vim-cucumber.git
## endwise.vim: wisely add "end" in ruby, endfunction/endif/more in vim script, etc
#install_plugin vim-endwise https://github.com/tpope/vim-endwise.git
## A Git wrapper so awesome, it should be illegal
#install_plugin vim-fugitive https://github.com/tpope/vim-fugitive.git
## Vim runtime files for Haml, Sass and SCSS
#install_plugin vim-haml https://github.com/tpope/vim-haml.git
## Plugin for C/C++/ObjC/ObjC++ include directive completion
#install_plugin inccomplete https://github.com/vim-scripts/inccomplete.git
## Vim plugin for intensely commenting
#install_plugin nerdcommenter https://github.com/scrooloose/nerdcommenter.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment