Vim-go: Pathogen installation issue: Not an editor command: GoLint

Created on 6 Jan 2015  路  5Comments  路  Source: fatih/vim-go

I have installed using pathogen as indicated in the readme using

cd ~/.vim/bundle
git clone https://github.com/fatih/vim-go.git

My environment is ubuntu 14.04 and vim 7.4
Only other plugin is NERDTree
Golang version is 1.4

I have stripped my .vimrc down to

" *** Pathogen
"   http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen/
call pathogen#infect()
call pathogen#helptags()

The only commands with a Go prefix are

GoInstallBinaries
GoUpdateBinaries
Go

I have already installed golint so it is in my $GOPATH/bin directory but when i try to run :GoLint it indicates it is not an editor command

If I run :command none of the Go commands except the ones above appear

From looking at other vim-go issues they indciated the binaries would be placed in a ~/.vim-go directory but that does not exist

:scriptnames output is

  1: /usr/share/vim/vimrc
  2: /usr/share/vim/vim74/debian.vim
  3: /usr/share/vim/vim74/syntax/syntax.vim
  4: /usr/share/vim/vim74/syntax/synload.vim
  5: /usr/share/vim/vim74/syntax/syncolor.vim
  6: /usr/share/vim/vim74/filetype.vim
  7: ~/.vimrc
  8: ~/.vim/autoload/pathogen.vim
  9: /usr/share/vim/vim74/ftoff.vim
 10: ~/.vim/bundle/vim-go/ftdetect/gofiletype.vim
 11: ~/.vim/bundle/nerdtree/plugin/NERD_tree.vim
 12: ~/.vim/bundle/nerdtree/autoload/nerdtree.vim
 13: ~/.vim/bundle/nerdtree/lib/nerdtree/path.vim
 14: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_controller.vim
 15: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_item.vim
 16: ~/.vim/bundle/nerdtree/lib/nerdtree/key_map.vim
 17: ~/.vim/bundle/nerdtree/lib/nerdtree/bookmark.vim
 18: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_file_node.vim
 19: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_dir_node.vim
 20: ~/.vim/bundle/nerdtree/lib/nerdtree/opener.vim
 21: ~/.vim/bundle/nerdtree/lib/nerdtree/creator.vim
 22: ~/.vim/bundle/nerdtree/lib/nerdtree/flag_set.vim
 23: ~/.vim/bundle/nerdtree/lib/nerdtree/nerdtree.vim
 24: ~/.vim/bundle/nerdtree/lib/nerdtree/ui.vim
 25: ~/.vim/bundle/nerdtree/lib/nerdtree/event.vim
 26: ~/.vim/bundle/nerdtree/lib/nerdtree/notifier.vim
 27: ~/.vim/bundle/nerdtree/autoload/nerdtree/ui_glue.vim
 28: ~/.vim/bundle/nerdtree/nerdtree_plugin/exec_menuitem.vim
 29: ~/.vim/bundle/nerdtree/nerdtree_plugin/fs_menu.vim
 30: ~/.vim/bundle/vim-go/plugin/go.vim
 31: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
 32: /usr/share/vim/vim74/plugin/gzip.vim
 33: /usr/share/vim/vim74/plugin/matchparen.vim
 34: /usr/share/vim/vim74/plugin/netrwPlugin.vim
 35: /usr/share/vim/vim74/plugin/rrhelper.vim
 36: /usr/share/vim/vim74/plugin/spellfile.vim
 37: /usr/share/vim/vim74/plugin/tarPlugin.vim
 38: /usr/share/vim/vim74/plugin/tohtml.vim
 39: /usr/share/vim/vim74/plugin/vimballPlugin.vim
 40: /usr/share/vim/vim74/plugin/zipPlugin.vim
 41: /usr/share/vim/vim74/syntax/vim.vim
 42: /usr/share/vim/vim74/syntax/lua.vim
 43: /usr/share/vim/vim74/syntax/perl.vim
 44: /usr/share/vim/vim74/syntax/pod.vim
 45: /usr/share/vim/vim74/syntax/ruby.vim
 46: /usr/share/vim/vim74/syntax/python.vim
 47: /usr/share/vim/vim74/syntax/tcl.vim

Thanks in advance
Pat

Most helpful comment

fatih,
Thanks for the reply, just in case someone else runs into this issue this is what was causing my problems.
Based on looking at fatih's .vimrc, I realized that I had omitted "filetype plugin on" from my .vimrc file, so I altered it as follows

" *** Pathogen
"   http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen/
call pathogen#infect()
call pathogen#helptags()

" Enable filetype plugins 
filetype plugin on

All the vim commands are now available

Thanks
Pat

All 5 comments

Binaries are installed to GOPATH/bin or GOBIN. I think your setup is failing. Do you have other command's you are using? Please check again your setup. Have a look at my own setup:https://github.com/fatih/dotfiles/blob/master/vimrc

fatih,
Thanks for the reply, just in case someone else runs into this issue this is what was causing my problems.
Based on looking at fatih's .vimrc, I realized that I had omitted "filetype plugin on" from my .vimrc file, so I altered it as follows

" *** Pathogen
"   http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen/
call pathogen#infect()
call pathogen#helptags()

" Enable filetype plugins 
filetype plugin on

All the vim commands are now available

Thanks
Pat

Glad you solved it :+1:

@fatih I think you should really add the 路toggle your filetype plugin on in the vimrc路 step into your installation guide...it is stupid enough but it also took almost a whole day time for a newbie like me to find out this missing setup. I hope that nobody would fall into this trap any more, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

orlangure picture orlangure  路  3Comments

wpaulino picture wpaulino  路  4Comments

svanharmelen picture svanharmelen  路  3Comments

joeblubaugh picture joeblubaugh  路  3Comments

andrejvanderzee picture andrejvanderzee  路  3Comments