I use Vim to open up a hello.go file (using the nerdTree plugin included with janus vim distro) and get "vim-go: could not find 'gotags'. Run :GoInstallBinaries to fix it.". I'm using gvm. I can get golang to run with gvm. How do I install GoInstallBinaries with gvm to get rid of this message? I'm pretty new to golang, so I'm just trying to get up and running.
            Asked
            
        
        
            Active
            
        
            Viewed 2,240 times
        
    3
            
            
        - 
                    You literally need to type (while is command mode) in vim, `:GoInstallBinaries`, then press enter. The last time I did this there was at least one dependency that had moved and I needed to install it manually. – sberry Apr 03 '15 at 05:55
 - 
                    1@sberry - consider converting your comment to an answer, because it appears to be one. – Cel Skeggs Apr 03 '15 at 05:59
 - 
                    @sberry I created $GOPATH as export GOPATH="$HOME/workspace" and when I do :GoInstallBinaries I get "vim-go: go executable not found" – Nona Apr 06 '15 at 03:07
 
1 Answers
1
            
            
        Do what sberry says. In command-mode, hit : and type GoInstallBinaries, and hit enter. That should install everything.
        robbrit
        
- 17,560
 - 4
 - 48
 - 68
 
- 
                    I created $GOPATH as export GOPATH="$HOME/workspace" and when I do :GoInstallBinaries I get "vim-go: go executable not found" – Nona Apr 06 '15 at 03:06
 - 
                    You might not have Go installed properly in that case, or your `GOROOT` environment variable is not set. – robbrit Apr 06 '15 at 14:44