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 uses guru, but can be changed to godef 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 or g:go_guru_tags
    • ๐Ÿ”จ Internal refactoring to use custom system() function that wraps both the standard system() call and vimproc. Now all system calls will take advantage and will use vimproc if installed. [GH-801]
    • Completion enables now gocode's autobuild and propose-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 via g:go_gocode_autobuild and g:go_gocode_propose_builtins. [GH-815]
    • โž• Added new http.HandlerFunc snippets with hf and hhf shortcuts [GH-816]
    • โž• Added new Example and Benchmark snippets with example and benchmark shortcuts [GH-836]
    • Search tool binaries first in GOBIN and then in PATH as most of vim-go users installs it to GOBIN mostly [GH-823]
    • ๐Ÿ‘Œ Improve guru based commands by providing automatically detected GOPATHS, such as gb, 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 with go get -u. We have a new g: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]