Skip to content

Instantly share code, notes, and snippets.

@poulter7
Created March 7, 2012 17:32
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 poulter7/1994570 to your computer and use it in GitHub Desktop.
Save poulter7/1994570 to your computer and use it in GitHub Desktop.
For Andy... a simple addition to .vimrc for rails development
set nocompatible
filetype indent plugin on | syn on
set hidden
filetype on
filetype plugin on
filetype indent on
" let's copy paste some lines from documentation
fun! SetupVAM()
let addons_base = expand('$HOME') . '/.vim/vim-addons'
exec 'set runtimepath+='.addons_base.'/vim-addon-manager'
if !isdirectory(addons_base)
exec '!p='.shellescape(addons_base).'; mkdir -p "$p" && cd "$p" && git clone git://github.com/MarcWeber/vim-addon-manager.git'
endif
call vam#ActivateAddons(['rails', 'bundler'], {'auto_install' : 1})
endf
call SetupVAM()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment