aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-09 15:05:26 +0800
committerGitHub <noreply@github.com>2020-10-09 15:05:26 +0800
commita5eea11a5721b7abf4fa9b6ee2d074981bf236c3 (patch)
tree4faebbf26206145df15f0b2255aee8dbd7f73463
parent53d335c5f0295bd4e655bb2acbf013cc5b3b9159 (diff)
change netrw's http command
It seems the default command used by netrw for download files (with curl) will error out on Windows for https://www.unicode.org. I have no idea why. Need to work around this issue. See also https://github.com/chrisbra/unicode.vim/issues/51
-rw-r--r--variables.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/variables.vim b/variables.vim
index a6cc56d..9625609 100644
--- a/variables.vim
+++ b/variables.vim
@@ -34,6 +34,9 @@ let mapleader = ','
" let g:loaded_netrw = 0
" let g:loaded_netrwPlugin = 0
let g:netrw_liststyle = 3
+if g:is_win
+ let g:netrw_http_cmd = 'curl --ssl-no-revoke -Lo'
+endif
" Do not load tohtml.vim
let g:loaded_2html_plugin = 1