Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

贴代码时 curl 参数调整

  • Loading branch information...
commit 6438bd43f6764af6f4f3954391b36f68164d1d74 1 parent a9efa3c
@lilydjwg authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  vimrc.py
View
3  vimrc.py
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.