node & yarn 淘宝国内源
node
查询当前镜像
npm get registry
设置
npm config set registry https://registry.npm.taobao.org/        (旧地址)
npm config set registry https://registry.npmmirror.com/         (最新地址)
还原
npm config set registry https://registry.npmjs.org/
yarn
查询
yarn config get registry
设置
yarn config set registry https://registry.npm.taobao.org/        (旧地址)
yarn config set registry https://registry.npmmirror.com/         (最新地址)
还原
yarn config set registry https://registry.yarnpkg.com
链接
Git 加速
clone加速
使用github proxy代理网站如:
github proxy
永久将github.com映射到代理网站方法:
- 设置映射
 
git config --global url."https://gh-proxy.com/https://github.com/".insteadOf "https://github.com/"
- 关闭ssl verify验证
 
git config --global http.sslVerify false
链接
关于Git在克隆远程仓库时候,出现:SSL certificate problem:certificate has expired
vim-plug下载加速
使用vim-plug管理插件会从github等地方下载插件,可以通过设置一个全局参数来设置代理GitHub
let g:plug_url_format='https://gh-proxy.com/https://github.com/%s.git'
call plug#begin('~/AppData/Local/nvim/plugged')
"	Plug 'jiangmiao/auto-pairs'
"	Plug 'dhruvasagar/vim-table-mode'
"	Plug 'habamax/vim-select'
"	Plug 'mhinz/vim-grepper'
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
Plug 'aklt/plantuml-syntax'
Plug 'tyru/open-browser.vim'
Plug 'weirongxu/plantuml-previewer.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdcommenter'
"
call plug#end()
然后就可以快速下载了
coc.nvim 配置node国内镜像
修改$home/.npmrc,添加如下
# 淘宝镜像
coc.nvim:registry=https://registry.npmmirror.com/
nvim加载lua插件
- 
在
lua/plugins.lua文件中添加lua插件 - 
nvim中执行
:PackerInstall。 - 
在
init.vim中添加插件plugins.lua模块 
lua require('plugins')