diff options
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/doc/cmdline.txt | 7 | ||||
| -rw-r--r-- | runtime/doc/eval.txt | 37 | ||||
| -rw-r--r-- | runtime/doc/vim_diff.txt | 13 |
3 files changed, 30 insertions, 27 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index d870a72600..652487d8ab 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -327,8 +327,11 @@ terminals) List entries 6 to 12 from the search history: > :history / 6,12 < - List the recent five entries from all histories: > - :history all -5, + List the penultimate entry from all histories: > + :history all -2 +< + List the most recent two entries from all histories: > + :history all -2, :keepp[atterns] {command} *:keepp* *:keeppatterns* Execute {command}, without adding anything to the search diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 4e8b6527eb..29e254b0b3 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4727,33 +4727,32 @@ input({opts}) more information. Example: > let fname = input("File: ", "", "file") < *E5400* *E5402* - The optional highlight key allows specifying function which - will be used for highlighting user input. This function - receives user input as its only argument and must return - a list of 3-tuples [hl_start_col, hl_end_col + 1, hl_group] + The optional `highlight` key allows specifying function which + will be used for highlighting user input. This function + receives user input as its only argument and must return + a list of 3-tuples [hl_start_col, hl_end_col + 1, hl_group] where hl_start_col is the first highlighted column, hl_end_col is the last highlighted column (+ 1!), hl_group is |:hl| group used for highlighting. *E5403* *E5404* *E5405* *E5406* - Both hl_start_col and hl_end_col + 1 must point to the start - of the multibyte character (highlighting must not break - multibyte characters), hl_end_col + 1 may be equal to the - input length. Start column must be in range [0, len(input)), - end column must be in range (hl_start_col, len(input)], - sections must be ordered so that next hl_start_col is greater + Both hl_start_col and hl_end_col + 1 must point to the start + of the multibyte character (highlighting must not break + multibyte characters), hl_end_col + 1 may be equal to the + input length. Start column must be in range [0, len(input)), + end column must be in range (hl_start_col, len(input)], + sections must be ordered so that next hl_start_col is greater then or equal to previous hl_end_col. - Highlight function is called at least once for each new - displayed input string, before command-line is redrawn. It is - expected that function is pure for the duration of one input() - call, i.e. it produces the same output for the same input, so - output may be memoized. Function is run like under |:silent| - modifier, additionally any errors from function cause it to be - no longer executed for the duration of the current input() - call. + Highlight function is called at least once for each new + displayed input string, before command-line is redrawn. It is + expected that function is pure for the duration of one input() + call, i.e. it produces the same output for the same input, so + output may be memoized. Function is run like under |:silent| + modifier. If the function causes any errors, it will be + skipped for the duration of the current input() call. - Currently coloring is disabled when command-line contains + Currently coloring is disabled when command-line contains arabic characters. NOTE: This function must not be used in a startup file, for diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 1df4047789..2f031c0b1f 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -148,12 +148,11 @@ Highlight groups: UI: *E5408* *E5409* *g:Nvim_color_expr* *g:Nvim_color_cmdline* - UI now supports command-line coloring. Officially only |input()| and - |inputdialog()| may be colored, temporary for testing purposes expressions - (e.g. |i_CTRL-R_=|) and regular command-line (|:|) are colored by callbacks - defined in `g:Nvim_color_expr` and `g:Nvim_color_cmdline` respectively. - Callbacks are to be replaced by parser implemented in C which will also do - the coloring. + Command-line coloring is supported. Only |input()| and |inputdialog()| may + be colored. For testing purposes expressions (e.g. |i_CTRL-R_=|) and regular + command-line (|:|) are colored by callbacks defined in `g:Nvim_color_expr` + and `g:Nvim_color_cmdline` respectively (these callbacks are for testing + only, and will be removed in a future version). ============================================================================== 4. Changed features *nvim-features-changed* @@ -182,6 +181,8 @@ one. It does not attempt to mix data from the two. |system()| does not support writing/reading "backgrounded" commands. |E5677| +|:redir| nested in |execute()| works. + Nvim may throttle (skip) messages from shell commands (|:!|, |:grep|, |:make|) if there is too much output. No data is lost, this only affects display and makes things faster. |:terminal| output is never throttled. |