插件
VS Code 无法下载 Go 插件的工具包
· ☕ 1 分钟
VS Code 安装 Go 插件之后,打开 Go 项目时,编辑器会提示安装工具包。 但是 golang.org 无法直接访问,我们需要将包手动下载到 GOPATH 目录,进行安装。 创建包目录 1 2 cd $GOPATH mkdir -p src/golang.org/x 下载包 1 2 3 cd src/golang.org/x git clone https://github.com/golang/tools.git git clone https://github.com/golang/lint.git 安装包 1 2 go get golang.org/x/tools/... go get github.com/golangci/golangci-lint/cmd/[email protected]

Vim 必备插件
· ☕ 2 分钟
1. nerdtree 生成文件目录树 1 2 " 文件目录树 Plugin 'scrooloose/nerdtree' 1 2 3 4 5 6 7 8 9 10 11 12 13 "===================================================== "" NERDTree 配置 "===================================================== let NERDTreeChDirMode=1 "显示书签" let NERDTreeShowBookmarks=1 "设置忽略文件类型" let NERDTreeIgnore=['\~$', '\.pyc$', '\.swp$','\.pyo$', '__pycache__$'] "窗口大小" let NERDTreeWinSize=40 autocmd VimEnter * if !argc() | NERDTree | endif " Load NERDTree only if vim is run without arguments "按