Sunday, August 27, 2017

Setting up Go Vim

Get Plug and Vim-Go:

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
git clone https://github.com/fatih/vim-go.git ~/.vim/plugged/vim-go

Add this to .vimrc:

call plug#begin()
Plug 'fatih/vim-go'
Plug 'Valloric/YouCompleteMe'
call plug#end()

Run these commands within Vim:

:PlugInstall
:GoInstallBinaries

Run this from the command line:

cd .vim/plugged/YouCompleteMe
./install.py 

Further Reading:



No comments:

Post a Comment