Skip to content

Instantly share code, notes, and snippets.

@s5unty
Created February 6, 2015 09:54
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 s5unty/bab86fa814ad6ae34a69 to your computer and use it in GitHub Desktop.
Save s5unty/bab86fa814ad6ae34a69 to your computer and use it in GitHub Desktop.
Add proxy support in calendar.vim
autoload/calendar/webapi.vim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git autoload/calendar/webapi.vim autoload/calendar/webapi.vim
index 044570c..f07e134 100644
--- autoload/calendar/webapi.vim
+++ autoload/calendar/webapi.vim
@@ -153,7 +153,7 @@ function! s:request(json, async, url, ...)
endif
endif
if executable('curl')
- let command = printf('curl -s -k -i -N -X %s', method)
+ let command = printf('curl -x socks5h://127.0.0.1:9527 -s -k -i -N -X %s', method)
let command .= s:make_header_args(headdata, '-H ', quote)
if withbody
let command .= ' --data-binary @' . quote . file . quote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment