Permalink
Browse files

贴代码时 curl 参数调整

  • Loading branch information...
lilydjwg committed Sep 28, 2012
1 parent a9efa3c commit 6438bd43f6764af6f4f3954391b36f68164d1d74
Showing with 1 addition and 2 deletions.
  1. +1 −2 vimrc.py
View
@@ -9,9 +9,8 @@ def LilyPaste():
msg = 'Pasting...'
echon(msg)
vim.command('redraw')
- curl = subprocess.Popen(['curl', '-F', 'vimcn=<-', 'http://p.vim-cn.com'],
+ curl = subprocess.Popen(['curl', '-m', '60', '-Ss', '-F', 'vimcn=<-', 'http://p.vim-cn.com'],
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
- stderr=open(os.devnull, 'w'),
)
for l in vim.current.range:
curl.stdin.write(l.encode('utf-8') + b'\n')

0 comments on commit 6438bd4

Please sign in to comment.