- Pathogen: Pathogen on GitHub by Tim Pope
- ACK: ACK Home
- BASH SCRIPTING: Advanced Bash-Scripting Guide
- Interactive Ruby Shell: @ Ruby Doc
- VIM: VIM
Install Pathogen to manage the VIM plugins
mkdir -p ~/.vim/autoload
cd ~/.vim/autoload
wget https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
Use Tammer Saleh script to manage plugins
Create a file ~/.vim/update_bundles
touch ~/.vim/update_bundles.rb
#!/usr/bin/env ruby
git_bundles = [ "git://github.com/anyakichi/vim-autoclose.git", "git://github.com/astashov/vim-ruby-debugger.git", "git://github.com/claco/jasmine.vim.git", "git://github.com/clvv/a.vim.git", "git://github.com/digitaltoad/vim-jade.git", "git://github.com/duganchen/vim-soy.git", "git://github.com/jistr/vim-nerdtree-tabs.git", "git://github.com/kchmck/vim-coffee-script.git", "git://github.com/mileszs/ack.vim.git", "git://github.com/msanders/snipmate.vim.git", "git://github.com/pangloss/vim-javascript.git", "git://github.com/scrooloose/nerdtree.git", "git://github.com/timcharper/textile.vim.git", "git://github.com/tomtom/tcomment_vim.git", "git://github.com/tpope/vim-commentary.git", "git://github.com/tpope/vim-cucumber.git", "git://github.com/tpope/vim-fugitive.git", "git://github.com/tpope/vim-git.git", "git://github.com/tpope/vim-haml.git", "git://github.com/tpope/vim-markdown.git", "git://github.com/tpope/vim-rails.git", "git://github.com/tpope/vim-repeat.git", "git://github.com/tpope/vim-surround.git", "git://github.com/tsaleh/vim-align.git", "git://github.com/tsaleh/vim-shoulda.git", "git://github.com/tsaleh/vim-supertab.git", "git://github.com/tsaleh/vim-tcomment.git", "git://github.com/vim-ruby/vim-ruby.git", "git://github.com/wincent/Command-T.git", ]
vim_org_scripts = [ ["IndexedSearch", "7062", "plugin"], ["jquery", "12107", "syntax"], ]
require 'fileutils' require 'open-uri'
bundles_dir = File.join(File.dirname(__FILE__), "bundle")
FileUtils.cd(bundles_dir)
puts "trashing everything (lookout!)" Dir["*"].each {|d| FileUtils.rm_rf d }
git_bundles.each do |url| dir = url.split('/').last.sub(/\.git$/, '') puts "unpacking #{url} into #{dir}" `git clone #{url} #{dir}` FileUtils.rm_rf(File.join(dir, ".git")) end
vim_org_scripts.each do |name, script_id, script_type| puts "downloading #{name}" local_file = File.join(name, script_type, "#{name}.vim") FileUtils.mkdir_p(File.dirname(local_file)) File.open(local_file, "w") do |file| file << open("http://www.vim.org/scripts/download_script.php?src_id=#{script_id}").read end end
Make sure you have Ruby installed and run it.
mkdir -p ~/.vim/bundle
ruby ~/.vim/update_bundles
Option 1: Copy over the .vimrc file
cp ~/dotfiles/vimrc ~/.vimrc
Option 2: Symlink over the .vimrc file
ln -s ~/dotfiles/vimrc ~/.vimrc
Color Scheme (Railscast / Idlefingers 256)
http://www.vim.org/scripts/script.php?script_id=2175
Install this file as ~/.vim/colors/railscasts.vim