相关疑难解决方法(0)

无法使用 Curl 写入隐藏路径

我今天全新安装了 Ubuntu 20.04。 \n我已经设置了 vim 环境,当我遇到减速带时,它使用curl 安装了plug.vim。

\n
Error creating directory /home/simon/.vim/autoload.\ncurl: (23) Failed writing received data to disk/application\n
Run Code Online (Sandbox Code Playgroud)\n

.vimrc 中的相关行是:

\n
" Auto-install plugin manager if it doesnt exist (and PlugInstall)\nif empty(glob('~/.vim/autoload/plug.vim'))\n    silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs\n        \\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim\n    autocmd VimEnter * PlugInstall | source $MYVIMRC\nendif\n
Run Code Online (Sandbox Code Playgroud)\n

试图隔离问题,似乎我无法使用其中包含点文件的路径作为curl 的输出。

\n

例如。这失败了:

\n
\xe2\x9e\x9c  ~ curl -fLo ~/.test_dot_folder/test.py --create-dirs example.com\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n  0 …
Run Code Online (Sandbox Code Playgroud)

vim permissions command-line curl

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

command-line ×1

curl ×1

permissions ×1

vim ×1