fatih/vim-go — pull request #44 by foubarre (2014-04-04 09:41:38+00:00)
Title: improve GoOracle automatic scope handling

1) if g:go_oracle_scope_file is defined use it
2) otherwise use package import path from currently opened file (won't work if file is not under $GOROOT or $GOPATH)
3) fallback to currently opened file

1) is handy when used with vim-localvimrc to setup scope for each go project
2) would work better if it was finding all packages of the currently opened file's workspace as there can be more than one package in the scope, and there must be at least one main function (my nascent vim-scripts skills are reaching their limit there!)