Mercurial > vim
diff runtime/doc/options.txt @ 9098:0d52ddff8db4 v7.4.1833
commit https://github.com/vim/vim/commit/2ff8b64679242e73248774a388d54931c9ce49bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 24 10:46:45 2016 +0200
patch 7.4.1833
Problem: Cannot use an Ex command for 'keywordprg'.
Solution: Accept an Ex command. (Nelo-Thara Wallus)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 May 2016 11:00:09 +0200 |
parents | 071f9da012fb |
children | bc38030aec7d |
line wrap: on
line diff
--- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4587,16 +4587,18 @@ A jump table for the options with a shor *'keywordprg'* *'kp'* 'keywordprg' 'kp' string (default "man" or "man -s", DOS: ":help", - OS/2: "view /", VMS: "help") + VMS: "help") global or local to buffer |global-local| {not in Vi} Program to use for the |K| command. Environment variables are expanded |:set_env|. ":help" may be used to access the Vim internal help. (Note that previously setting the global option to the empty value did this, which is now deprecated.) - When "man" is used, Vim will automatically translate a count for the - "K" command to a section number. Also for "man -s", in which case the - "-s" is removed when there is no count. + When the first character is ":", the command is invoked as a Vim + Ex command prefixed with [count]. + When "man", "man -s" or an Ex command is used, Vim will automatically + translate a count for the "K" command and pass it as the first + argument. For "man -s" the "-s" is removed when there is no count. See |option-backslash| about including spaces and backslashes. Example: > :set keywordprg=man\ -s