|
1 | | -*builtin.txt* For Vim version 9.2. Last change: 2026 Jun 09 |
| 1 | +*builtin.txt* For Vim version 9.2. Last change: 2026 Jun 17 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1986,6 +1986,14 @@ complete({startcol}, {matches}) *complete()* *E785* |
1986 | 1986 | The match can be selected with CTRL-N and CTRL-P as usual with |
1987 | 1987 | Insert mode completion. The popup menu will appear if |
1988 | 1988 | specified, see |ins-completion-menu|. |
| 1989 | + Unlike with other |ins-completion| modes, the CTRL-N and |
| 1990 | + CTRL-P keys can be mapped while this completion is active. |
| 1991 | + For example, to make CTRL-N move the selection without |
| 1992 | + inserting the match: > |
| 1993 | +
|
| 1994 | + inoremap <expr> <C-N> complete_info().mode ==# 'eval' |
| 1995 | + \ ? '<Down>' : '<C-N>' |
| 1996 | +< |
1989 | 1997 |
|
1990 | 1998 | Example (using legacy Vim script): > |
1991 | 1999 |
|
@@ -4036,20 +4044,20 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()* |
4036 | 4044 |
|
4037 | 4045 |
|
4038 | 4046 | getbgcolor() *getbgcolor()* |
4039 | | - Returns a |List| describing the current background colour |
4040 | | - as [red, green, blue], each component in the range 0..255. |
| 4047 | + Returns a |List| describing the current background colour as |
| 4048 | + [red, green, blue], each component in the range 0..255. |
4041 | 4049 |
|
4042 | | - In the GUI (or with 'termguicolors' set) the value comes |
4043 | | - from the |hl-Normal| highlight group's background. In a |
4044 | | - terminal it comes from the OSC 11 response (also available |
4045 | | - as |v:termrbgresp|). |
| 4050 | + In the GUI (or with 'termguicolors' set) the value comes from |
| 4051 | + the |hl-Normal| highlight group's background. In a terminal |
| 4052 | + it comes from the OSC 11 response (also available as |
| 4053 | + |v:termrbgresp|). |
4046 | 4054 | Returns [] when no value is available, e.g. before the |
4047 | 4055 | terminal has answered the OSC 11 query, or when |hl-Normal| |
4048 | 4056 | has no background colour set. |
4049 | 4057 |
|
4050 | | - Useful when manually crafting RGB image data and you want |
4051 | | - to flatten alpha onto the same colour the terminal will |
4052 | | - actually display behind the image. |
| 4058 | + Useful when manually crafting RGB image data and you want to |
| 4059 | + flatten alpha onto the same colour the terminal will actually |
| 4060 | + display behind the image. |
4053 | 4061 |
|
4054 | 4062 | Return type: list<any> |
4055 | 4063 |
|
@@ -13302,8 +13310,9 @@ hurd GNU/Hurd version of Vim |
13302 | 13310 | iconv Can use iconv() for conversion. |
13303 | 13311 | image Compiled with the popup window "image" attribute. |
13304 | 13312 | See |popup-image|. |
13305 | | -image_cairo Compiled with the Cairo image backend (GTK GUI). |
| 13313 | +image_cairo Compiled with the Cairo image backend (GTK2 and GTK3 GUI). |
13306 | 13314 | image_gdi Compiled with the GDI image backend (Windows GUI). |
| 13315 | +image_gdk Compiled with the GDK image backend (GTK4 GUI). |
13307 | 13316 | image_kitty Compiled with the kitty graphics protocol image backend |
13308 | 13317 | (terminal). |
13309 | 13318 | image_sixel Compiled with the DEC sixel image backend (terminal). |
|
0 commit comments