Gocode

Follow-up on autocompletion with gocode and vim-go in Go1.11, transition to gopls

2020-03-25

Update vim-go has already transitioned to gopls as its default completion engine. I just noticed that my Vim is still using gocode even though I updated to the latest version of vim-go. Commenting/removing the line Plugin ‘stamblerre/gocode’, {‘rtp’: ‘vim/’} from my .vimrc did the trick for me. Hope this helps. Original post here.

Autocomplete · Gocode · Gopls · Vim · Vim-Go

1 minute

Autocompletion with gocode and vim-go in Go1.11

2018-09-20

I use vim with vim-go as my main editor for Go-based projects (and for anything else, really). Recently, I’ve upgraded to Go1.11 and my autocompletion stopped working. I know vim-go uses gocode as it’s autocompletion engine but since vim-go’s :GoInstallBinaries command handled the installation for me, I didn’t really have to think about it. Fortunately, a quick update to my vimrc file did the trick for me. I just had to add Plugin ‘mdempsky/gocode’, {‘rtp’: ‘vim/’} to my vimrc (I use Vundle) and run :PluginInstall again.

Autocomplete · Gocode · Vim · Vim-Go

1 minute