Autocompletion with gocode and vim-go in Go1.11
2018-09-20
Autocomplete · Gocode · Vim · Vim-Go
1 minute
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. Works a treat.