vim-go v1.5 Release Notes

Release Date: 2016-03-16 // about 8 years ago
  • 🔋 FEATURES:

    • Introducing code name "motion". A new whole way of moving around and navigating [GH-765]. Checkout the following new changes:
      • A vim-go specific tool, called motion is being developed which provides us the underlying foundation for the following and upcoming new features.
      • ]] and [[ motions can be used to jump between functions
      • if and af are improved and implement from scratch. It has now support for literal functions, comments of functions, better cursor position support and more stable.
      • New :GoDecls and :GoDeclsDir commands that are available if ctrlp.vim is installed. Once called one can easily jump to any generic declaration available.
      • I wrote two blog posts about these new features in more detail. I recommend you to read it: Treating Go types as objects in Vim and Navigation between functions and types in vim-go
    • ✅ A new :GoAlternate command that toggles to the test file of the current file. It also has new appropriate mappings to open the alternate file in split or tabs. [GH-704]
    • Now commands can choose whether they want to open a quickfix or a location list via the setting g:go_list_type. Also all the commands have now some sensible settings, some will open a qf window, some will open a location list [GH-700]

    👌 IMPROVEMENTS:

    • ➕ Add support for goimport's new -srcdir. Goimports now succesfully suports vendor/ folders with this release. [GH-735]
    • Add g:go_gorename_prefill setting which disabled pre filling the argument for :GoRename [GH-711]
    • 👌 Improve :GoRun to complete to filenames [GH-742]
    • Highlight //go:generate comment directives [GH-757]
    • Indent code in Go HTML templates [GH-709]
    • 👌 Improve negative numbers of all types, octals, imaginary numbers with exponents [GH-752]
    • 👌 Improved internal usage of retrieving offsets [GH-762]
    • 👌 Improve by substitute all backslashes to slashes for filename [GH-703]
    • 👌 Improve internal Go package path function [GH-702]
    • 👌 Improved typo and grammar errors in docs [GH-714]
    • 👌 Improved internal :GoInfo automatic call [GH-759]

    🐛 BUG FIXES:

    • 🛠 Fix oracle scope not working if trailing slash exists in scope [GH-751]
    • 🛠 Fix :GoErrCheck checking abspath [GH-671]
    • 🛠 Fix :GoInstall correctly parsing errors [GH-692]
    • 🛠 Fix :GoInstall correctly parsing errors [GH-692]
    • 🛠 Fix :GoTestFunc for neovim [GH-695]
    • 🛠 Fix :GoRun accepting arguments for neovim [GH-730]
    • 🛠 Fix go run mappings not working [GH-542]
    • 🛠 Fix autodetect gopath picking up non existing GB vendor folder
    • 🛠 Fix gofmt errors showing per buffer instead of per script [GH-721]
    • 🛠 Fix some of the neosnippet snippets