Body font Header font  
Print

Vim plugin to load options from Helipad

Usage

This script loads your vim settings through Helipad.

Save this as helipad.vim and place it in your vim plugins directory. This is usually ~/.vim/plugins/

helipad.vim

" Set your username and password here
let helipad_email = 'alex@example.com'
let helipad_password = 'password'
let document_id = 29

" Execute the command
let vimrc_command = "curl  -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d '<request><authentication><email>" . helipad_email . "</email><password>" . helipad_password . "</password></authentication></request>' http://pad.helicoid.net/document/" . document_id .  "/source" 
let curl_output = system(vimrc_command)

" Run eval on it
execute substitute(curl_output, '\r\n', '\n', 'g')