From: Mao-Yining <101858210+mao-yining@users.noreply.github.com> Date: Tue, 3 Feb 2026 14:51:24 +0000 (+0000) Subject: runtime(c): only set keywordprg when there has 'man' X-Git-Tag: v9.1.2128~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2e76bb8feaa91c5653267180f139cba1bfeec9a;p=thirdparty%2Fvim.git runtime(c): only set keywordprg when there has 'man' closes: #19319 Signed-off-by: Mao-Yining Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/c.vim b/runtime/ftplugin/c.vim index 2793c5d46a..97111121c3 100644 --- a/runtime/ftplugin/c.vim +++ b/runtime/ftplugin/c.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: C " Maintainer: The Vim Project -" Last Change: 2026 Jan 26 +" Last Change: 2026 Feb 3 " Former Maintainer: Bram Moolenaar " Only do this when not done yet for this buffer @@ -41,7 +41,7 @@ if has("vms") endif " Use terminal window for gui -if has('gui_running') && exists(':terminal') == 2 +if has('gui_running') && exists(':terminal') == 2 && executable("man") setlocal keywordprg=:CKeywordPrg command! -buffer -nargs=1 -count CKeywordPrg call s:CKeywordPrg(, )