summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/ftplugin/go.vim
AgeCommit message (Collapse)AuthorFiles
2026-02-14vim-patch:dcc4175: runtime(go,gleam): Remove 'formatprg' from ftpluginszeertzjq1
Effective use of 'formatprg' requires both an understanding of the specific capabilities of the formatting tool and Vim's formatting commands. This is overly burdensome for some users. Rather than address each complaint on a filetype by filetype basis, remove 'formatprg' settings from all ftplugins. It is expected that formatter plugins will be available in the near future as a better solution. See vim/vim#17145 (Add "formatter" feature using "compiler" as a template). Note: 'formatprg' will be removed from older ftplugins after the release of Vim 9.2. The setting was added to the go and gleam ftplugins during the current development cycle and have not been included in a Vim release. See: vim/vim#18650 (rust.vim: stop setting formatprg to rustfmt) closes: vim/vim#19108 https://github.com/vim/vim/commit/dcc41752843428142623b527433c551991ea7a31 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2025-07-05vim-patch:f9d87fa: runtime(go): fix `b:undo_ftplugin`Christian Clason1
last `unmap` can cause the error "E31: No such mapping" when `doaudocmd FileType go` if appending other commands to `b:undo_ftplugin` i.e. the space and the next bar as `let b:undo_ftplugin .= ' | setl ...'`. closes: vim/vim#17664 https://github.com/vim/vim/commit/f9d87fa6ba4b8026d089bf0fb755f6b0f7296408 Co-authored-by: ichizok <gclient.gaap@gmail.com>
2025-07-03vim-patch:5ecee30: runtime(go): add section movement mappings to ftpluginChristian Clason1
closes: vim/vim#17641 https://github.com/vim/vim/commit/5ecee30dcdc1e8c731a69aa04729f07edd57fc27 Co-authored-by: Rob B <github@0x7e.net>
2025-04-17vim-patch:fbbaa6e: runtime: set 'cpoptions' for line-continuation in various ↵Christian Clason1
runtime files closes: vim/vim#17121 https://github.com/vim/vim/commit/fbbaa6ebe92b938f1f9ef008571c330a8d29166a Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2025-03-19vim-patch:11ab02c: runtime(go): use :term for keywordprg for nvim/gvimChristian Clason1
Problem: - The document from `go doc` can be very long, and you can scroll if using `!` to run shell command in Gvim. - I realize that I didn't fully mimic behavior of default keywordprg in Nvim in the last commit. Solution: - Use builtin terminal for keywordprg in Gvim - In Nvim (both TUI and GUI), it should mimic the behavior of Vim `:term`, `:Man`, and `:help` closes: vim/vim#16911 https://github.com/vim/vim/commit/11ab02c819449eaeddc3d8d291f06bc73f428e91 Co-authored-by: Phạm Bình An <phambinhanctb2004@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2025-03-08vim-patch:62e8228: runtime(go): add 'keywordprg' and 'formatprg' to ftpluginChristian Clason1
closes: vim/vim#16804 https://github.com/vim/vim/commit/62e822808e364c84e8abfbc4827bf6012e5b32e0 Co-authored-by: Phạm Bình An <phambinhanctb2004@gmail.com>
2024-07-17vim-patch:3e07d5a: runtime(go): add recommended indent options to ftpluginChristian Clason1
related: vim/vim#15264 https://github.com/vim/vim/commit/3e07d5aef19ac34a61b9d58c2e0698351d392f52 Co-authored-by: markmacode <code@mamo.aleeas.com>
2014-12-30vim-patch:1e8ebf8Florian Walch1
Updated runtime files. https://code.google.com/p/vim/source/detail?r=1e8ebf870720e7b671f98f22d653009826304c4f