Created
March 7, 2012 17:32
-
-
Save poulter7/1994570 to your computer and use it in GitHub Desktop.
For Andy... a simple addition to .vimrc for rails development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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