Skip to content

Instantly share code, notes, and snippets.

@jfernandez
Created May 7, 2012 05:50
Show Gist options
  • Save jfernandez/2626144 to your computer and use it in GitHub Desktop.
Save jfernandez/2626144 to your computer and use it in GitHub Desktop.
Anytime you save a file send a POST request to a URL with the filename
autocmd BufWritePost * silent! exec "!curl -d 'filename=" . expand('<afile>') . "' http://domain.com &>/dev/null &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment