]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(go): use :term for keywordprg for nvim/gvim
authorPhạm Bình An <phambinhanctb2004@gmail.com>
Tue, 18 Mar 2025 20:05:35 +0000 (21:05 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 18 Mar 2025 20:05:35 +0000 (21:05 +0100)
commit11ab02c819449eaeddc3d8d291f06bc73f428e91
treec294e0b81ae0ae35843f940363570ffbd139604f
parentd5afc744033dbdb1340705808782dc97596b336d
runtime(go): use :term for keywordprg for nvim/gvim

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: #16911

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Phạm Bình An <phambinhanctb2004@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/go.vim