vim-go v1.16 Release Notes
Release Date: 2017-12-29 // over 6 years ago-
๐ FEATURES:
- Add
g:go_doc_url
to change thegodoc
server fromgodoc.org
to a custom private instance. Currently onlygodoc -http
instances are supported. [GH-1957]. - โ
New setting
g:go_test_prepend_name
(off by default) to add the failing test name to the output of:GoTest
[GH-1578]. - ๐ Support denite.vim for
:GoDecls[Dir]
[GH-1604].
๐ IMPROVEMENTS:
:GoRename
is a bit smarter when automatically pre-filling values, and what gets pre-filled can be configured withg:go_gorename_prefill
option. In addition:GoRename <Tab>
now lists some common options. [GH-1465].- ๐ Add support for
g:go_build_tags
to the:GoTest
family of functions. [GH-1562]. - ๐ Pass
--tests
to gometalinter when autosaving and when a custom gometalinter command has not been set. [GH-1563]. - Do not spam messages when command is run in a directory that does not exist. [GH-1527].
- ๐ Run
syntax sync fromstart
after:GoFmt
; this should make syntax highlighting break slightly less often after formatting code [GH-1582]. :GoDescribe
doesn't require a scope anymore [GH-1596].- โ Add some standard snippets for vim-minisnip [GH-1589].
g:go_snippet_engine
now defaults toautomatic
to use the first installed snippet engine it can find. [GH-1589].- ๐ Make sure temporary files created for
:GoFmt
end with.go
suffix as this is required by some Go formatting tools [GH-1601].
๐ BUG FIXES:
- ๐ Fix compatibility with Vim version before 7.4.1546 [GH-1498].
- Don't resize godoc window if it's already visible [GH-1488].
- โ
:GoTestCompile
produces a test binary again. The test binary will be written to a temporary directory to avoid polluting the user's working directory. [GH-1519] - ๐ Fix incorrect
:GoSameIdsToggle
behavior when there were match groups present, but none were goSameId. [GH-1538] - ๐ Fix
gpl
snippet for UltiSnips. [GH-1535] - ๐ Fix test output processing to correctly handle panics and log statements. [GH-1513]
:GoImpl
tab-completion would sometimes stop working [GH-1581].- Add
g:go_highlight_function_arguments
to highlight function arguments. [GH-1587]. - ๐ Fix installation of
gocode
on MS-Windows. [GH-1606]. - ๐ Fix template creation for files in directories that don't exist yet. [GH-1618].
- ๐ Fix behavior of terminal windows and resize terminal windows correctly for
all valid
g:go_term_mode
values. [GH-1611].
BACKWARDS INCOMPATIBILITIES:
- โ Display a warning for Vim versions older than 7.4.1689. Older versions may
still work, but are not supported. You can use
let g:go_version_warning = 0
to disable the warning. [GH-1524]. g:go_autodetect_gopath
is disabled by default, as support forvendor
has been in Go for a while. Also change the implementation forg:go_autodetect_gopath
; instead of manually setting it before every command it will now be set with theBufEnter
event, and reset with theBufLeave
event. This means that$GOPATH
will be changed for all commands run from Vim. [GH-1461] and [GH-1525].- โก๏ธ Update
:GoFillStruct
to check the current line (vs. the exact cursor position) for a struct literal to fill. To support this, fillstruct made backwards imcompatible changes. [GH-1607].
- Add