vim-go v1.7 Release Notes
Release Date: 2016-06-07 // almost 8 years ago-
๐ FEATURES:
- New
:GoImpl
command that generates method stubs for implementing an interface. Checkout the demo to see how it works. [GH-846] godef
support is added back as an optional setting. By default:GoDef
still usesguru
, but can be changed togodef
by adding the option:let g:go_def_mode = 'godef'
[GH-888]- ๐ New
<C-w><C-]>
and<C-w>]>
shortcuts to split current window and jumpt to the identifier under cursor. [GH-838] - New syntax setting"
g:go_highlight_fields
that highlights struct field references [GH-854]
๐ IMPROVEMENTS:
- Invoking
:GoRename
now reloads all files to reflect new changes automatically [GH-855] - โ
Calling
:GoTestCompile
does not create any temporary binary file anymore [GH-879] - Enable passing the
-tags
flag to:GoDef
. Now you can pass build tags to:GoDef
via:GoGuruTags
org:go_guru_tags
- ๐จ Internal refactoring to use custom
system()
function that wraps both the standardsystem()
call andvimproc
. Now all system calls will take advantage and will usevimproc
if installed. [GH-801] - Completion enables now
gocode
'sautobuild
andpropose-builtins
flags automatically. With these settings packages will be automatically build to get the freshest completion candidates and builtin keywords will be showed as well. By defaults these settings are enabled. Settings can be disabled/enabled viag:go_gocode_autobuild
andg:go_gocode_propose_builtins
. [GH-815] - โ Added new
http.HandlerFunc
snippets withhf
andhhf
shortcuts [GH-816] - โ Added new
Example
andBenchmark
snippets withexample
andbenchmark
shortcuts [GH-836] - Search tool binaries first in
GOBIN
and then inPATH
as most of vim-go users installs it toGOBIN
mostly [GH-823] - ๐ Improve
guru
based commands by providing automatically detected GOPATHS, such asgb
,godep
to be used if possible [GH-861] - โ Add
<Plug>(go-imports)
mapping to make it assignable to other keys [GH-878] - Increase compatibility with tcsh [GH-869]
- Improve
:GoInstallBinaries
for GOPATH's which don't have packages that work well withgo get -u
. We have a newg:go_get_update
setting to disable it. By default it's enabled. [GH-883]
๐ BUG FIXES:
- ๐ Fix
(go-freevars)
plug mapping to work as in visual mode instead of noncompatible normal mode [GH-832] - Commands based on guru now shows a more meaningful error message instead of just showing the exit status (-1)
- ๐ Fix
:GoCoverage
accidentally enabling syntax highlighting for users who don't use syntax (i.e syntax off) [GH-827] - ๐ Fix
:GoCoverage
colors to work for xterm as well [GH-863] - ๐ Fix commenting out block of texts for Go templates (filetype gothtmltmpl) [GH-813]
- ๐ Fix
:GoImplements
failing because of an empty scope definition. Now we default to current package to make it usable. - ๐ Fix
:GoPlay
posting to non HTTPS url. [GH-847] - ๐ Fix escaping the filenames for lint and motion commands [GH-862]
- ๐ Fix escaping the filename to
:GoDef
completely for tcsh [GH-868] - ๐ Fix showing SUCCESS for
go test
related commands if no test files are available [GH-859]
- New