vim-go icon indicating copy to clipboard operation
vim-go copied to clipboard

Not an editor command: GoRun

Open jakub-id opened this issue 11 years ago • 7 comments

OK, I am sure I messed something up. I am using pathogen to install the plugin. I ran :GoInstallBinaries which worked OK. I see syntax highlighting is there. Yet I can't run any of the commands: :GoRun, GoDoc, etc. Ideas?

jakub-id avatar May 12 '15 13:05 jakub-id

This is not vim-go related issue. Search for the issues please. You didn't installed vim-go properly. Please use pathogen or any other plugin manager to avoid problems. Thanks.

fatih avatar May 12 '15 13:05 fatih

I am using pathogen, as I have wrote above. Also, :GoInstallBinaries did work so some parts of the plugin seem to work. This is the output of :scriptnames:

38: /Users/jakub/.vim/bundle/vim-go/syntax/go.vim 39: /Users/jakub/.vim/bundle/vim-go/indent/go.vim

Do you see anything obvious missing?

jakub-id avatar May 12 '15 14:05 jakub-id

Check this out: https://github.com/fatih/vim-go/issues/282#issuecomment-69174561

fatih avatar May 12 '15 16:05 fatih

That did the trick, thanks! Would it make sense to add to the README for future reference?

jakub-id avatar May 18 '15 09:05 jakub-id

@skoczko this is not vim-go related, it's something because pathogen was not installed properly. vim-go doesn't rely on pathogen, you can use vundle, plug, vim-plug, neobundle, etc.. there is a lot of options to choose. Thanks for bringing this up though :)

fatih avatar May 18 '15 09:05 fatih

I encountered the same problem. I looked through a lot of the related issues. No dice. I came across this page and I ran git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go and :GoInstallBinaries in vim. "GoRun" is now available.

BruceWangNo1 avatar Mar 10 '19 01:03 BruceWangNo1

feedback

I encountered the same problem.

I used vim8, and installing by following:

  • Vim 8 packages
    • git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go

I solved it by adding the following to the file .vimrc:

" Enable filetype plugins 
filetype plugin on

Would it make sense to add to the README for future reference?

Think twice. @fatih

Thanks all.

FantasyLeo avatar May 09 '22 06:05 FantasyLeo