You are not logged in.
In the past I used Go package from AUR that was installed into /opt.
I had GOROOT, GOBIN and GOPATH correctly set up and my Vim provided suggestions just fine.
Recently, I've switched to Go package from official repo.
Now GOROOT is no longer exported (/etc/profile.d/go.sh contains only GOPATH entry)
Also Vim is no longer aware about Go built-in packages.
For example importing "fmt" and typing fmt.^X^O no longer opens suggestion box.
Suggestions for installed 3rd-party packages work just fine.
My .vimrc
set nu!
set nocompatible
set expandtab
set tabstop=4
set shiftwidth=4
set noexpandtab
set hidden
set autoindent
set copyindent
set smartindent
set list listchars=tab:>-
" Some Linux distributions set filetype in /etc/vimrc.
" Clear filetype flags before changing runtimepath to force Vim to reload them.
" Suggested by Go readme
filetype off
filetype plugin indent off
" ==============================================================================
" Go
" ==============================================================================
set rtp+=/usr/share/go/misc/vim
autocmd FileType go autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:Fmt\<esc>:laodview<esc>`z"
" ==============================================================================
" KEYS
" ==============================================================================
nnoremap <C-n> :bnext<CR>
nnoremap <C-p> :bprevious<CR>
nnoremap <A-n> :bnext<CR>:redraw<CR>:ls<CR>
nnoremap <A-p> :bprevious<CR>:redraw<CR>:ls<CR>
" ==============================================================================
" Turn on filetype plugin eventually
" ==============================================================================
syntax enable
filetype plugin indent onAny ideas, why this stopped working?
Thanks.
Offline
Killing gocode daemon seems to solve my problem.
I'm going to work for some time and will mark topic as solved if all ok.
Sorry for flooding the board.
Offline