diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2022-12-15 21:23:28 +0100 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-12-26 13:15:07 +0800 |
commit | 5b89d480e30367259f82680945572b1406219da5 (patch) | |
tree | 455961489867e2fa0c489a2bd4ff779a90d792fd /runtime | |
parent | 357aab4c65c49a924481a67e17a10bd04c334ab9 (diff) | |
download | rneovim-5b89d480e30367259f82680945572b1406219da5.tar.gz rneovim-5b89d480e30367259f82680945572b1406219da5.tar.bz2 rneovim-5b89d480e30367259f82680945572b1406219da5.zip |
vim-patch:9.0.1061: cannot display 'showcmd' somewhere else
Problem: Cannot display 'showcmd' somewhere else.
Solution: Add the 'showcmdloc' option. (Luuk van Baal, closes vim/vim#11684)
https://github.com/vim/vim/commit/ba936f6f4e85cc1408bc3967f9fd7665d948909b
Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/news.txt | 7 | ||||
-rw-r--r-- | runtime/doc/options.txt | 18 |
2 files changed, 23 insertions, 2 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 2ce0bd4de2..d6f6464f78 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -86,7 +86,12 @@ The following new APIs or features were added. • When using Nvim inside tmux 3.2 or later, the default clipboard provider will now copy to the system clipboard. |provider-clipboard| -• 'splitkeep' option to control the scroll behavior of horizontal splits. +• |'showcmdloc'| option to display the 'showcmd' information in the + status line or tab line. A new %S statusline item is available to place + the 'showcmd' text in a custom 'statusline'. Useful for when |'cmdheight'| + is set to 0. + +• |'splitkeep'| option to control the scroll behavior of horizontal splits. • |nvim_select_popupmenu_item()| now supports |cmdline-completion| popup menu. diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index c3bec5a0c1..b0c4193927 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5641,7 +5641,6 @@ A jump table for the options with a short description can be found at |Q_op|. global Show (partial) command in the last line of the screen. Set this option off if your terminal is slow. - The option has no effect when 'cmdheight' is zero. In Visual mode the size of the selected area is shown: - When selecting characters within a line, the number of characters. If the number of bytes is different it is also displayed: "2-6" @@ -5649,6 +5648,22 @@ A jump table for the options with a short description can be found at |Q_op|. - When selecting more than one line, the number of lines. - When selecting a block, the size in screen characters: {lines}x{columns}. + This information can be displayed in an alternative location using the + 'showcmdloc' option, useful when 'cmdheight' is 0. + + *'showcmdloc'* *'sloc'* +'showcmdloc' 'sloc' string (default "last") + This option can be used to display the (partially) entered command in + another location. Possible values are: + last Last line of the screen (default). + statusline Status line of the current window. + tabline First line of the screen if 'showtabline' is enabled. + Setting this option to "statusline" or "tabline" means that these will + be redrawn whenever the command changes, which can be on every key + pressed. + The %S 'statusline' item can be used in 'statusline' or 'tabline' to + place the text. Without a custom 'statusline' or 'tabline' it will be + displayed in a convenient location. *'showfulltag'* *'sft'* *'noshowfulltag'* *'nosft'* 'showfulltag' 'sft' boolean (default off) @@ -6120,6 +6135,7 @@ A jump table for the options with a short description can be found at |Q_op|. P S Percentage through file of displayed window. This is like the percentage described for 'ruler'. Always 3 in length, unless translated. + S S 'showcmd' content, see 'showcmdloc'. a S Argument list status as in default title. ({current} of {max}) Empty if the argument file count is zero or one. { NF Evaluate expression between '%{' and '}' and substitute result. |