1. 程式人生 > >vim設定go高量環境

vim設定go高量環境

換了多次機器,每次都要安裝高量,總查不是辦法,總結一下:

安裝vim-go :

mkdir -p ~/.vim
cd ~/.vim
mkdir autoload plugged
cd plugged
git clone https://github.com/fatih/vim-go vim-go
cd ../autoload
wget https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

配置vimrc檔案:
vim ~/.vimrc
然後填入以下內容:

call plug#begin()
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
call plug#end()
let g:go_version_warning = 0

實測:CentOs 和macOs均生效
參考:http://www.cnblogs.com/MikeZhang/p/vimGo20180123.html