zet

Getting Setup for Go 1.18

To get vim support for 1.18 make sure you first install Go 1.18 and then the gopls tool.

go install golang.org/dl/go1.18beta2@latest
go1.18beta2 download
go install golang.org/x/tools/gopls@latest

Then create a shortcut command (always better than an alias).

#!/bin/sh
exec go1.18beta2 "$@"

Now you should be able to :GoUpdateBinaries from within vim to get everything to support Go 1.18 development. Until then you will get annoying syntax errors for using [ but expected (.