comparison runtime/doc/insert.txt @ 17771:4bd21046902b v8.1.1882

patch 8.1.1882: cannot specify properties of the info popup window commit https://github.com/vim/vim/commit/62a0cb443c3184f24a6dac73d3505f9056cf6056 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 18 16:35:23 2019 +0200 patch 8.1.1882: cannot specify properties of the info popup window Problem: Cannot specify properties of the info popup window. Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Aug 2019 16:45:03 +0200
parents 1eaf34420bb3
children 59f8948b7590
comparison
equal deleted inserted replaced
17770:eaa74e51248c 17771:4bd21046902b
1 *insert.txt* For Vim version 8.1. Last change: 2019 May 07 1 *insert.txt* For Vim version 8.1. Last change: 2019 Aug 18
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1090 abbr abbreviation of "word"; when not empty it is used in 1090 abbr abbreviation of "word"; when not empty it is used in
1091 the menu instead of "word" 1091 the menu instead of "word"
1092 menu extra text for the popup menu, displayed after "word" 1092 menu extra text for the popup menu, displayed after "word"
1093 or "abbr" 1093 or "abbr"
1094 info more information about the item, can be displayed in a 1094 info more information about the item, can be displayed in a
1095 preview window 1095 preview or popup window
1096 kind single letter indicating the type of completion 1096 kind single letter indicating the type of completion
1097 icase when non-zero case is to be ignored when comparing 1097 icase when non-zero case is to be ignored when comparing
1098 items to be equal; when omitted zero is used, thus 1098 items to be equal; when omitted zero is used, thus
1099 items that only differ in case are added 1099 items that only differ in case are added
1100 equal when non-zero, always treat this item to be equal when 1100 equal when non-zero, always treat this item to be equal when
1112 further items in the list are not used. You can mix string and Dictionary 1112 further items in the list are not used. You can mix string and Dictionary
1113 items in the returned list. 1113 items in the returned list.
1114 1114
1115 The "menu" item is used in the popup menu and may be truncated, thus it should 1115 The "menu" item is used in the popup menu and may be truncated, thus it should
1116 be relatively short. The "info" item can be longer, it will be displayed in 1116 be relatively short. The "info" item can be longer, it will be displayed in
1117 the preview window when "preview" appears in 'completeopt'. The "info" item 1117 the preview window when "preview" appears in 'completeopt' or in a popup
1118 will also remain displayed after the popup menu has been removed. This is 1118 window when "popup" appears in 'completeopt'. In the preview window the
1119 useful for function arguments. Use a single space for "info" to remove 1119 "info" item will also remain displayed after the popup menu has been removed.
1120 existing text in the preview window. The size of the preview window is three 1120 This is useful for function arguments. Use a single space for "info" to
1121 lines, but 'previewheight' is used when it has a value of 1 or 2. 1121 remove existing text in the preview window. The size of the preview window is
1122 three lines, but 'previewheight' is used when it has a value of 1 or 2.
1123
1124 *complete-popup*
1125 When "popup" is in 'completeopt' a popup window is used to display the "info".
1126 Then the 'completepopup' option specifies the properties of the popup. The
1127 option is a comma separated list of values:
1128 height maximum height of the popup
1129 width maximum width of the popup
1130 highlight highlight group of the popup (default is Pmenu)
1131 Example: >
1132 :set completepopup=height:10,width:60,highlight:InfoPopup
1122 1133
1123 The "kind" item uses a single letter to indicate the kind of completion. This 1134 The "kind" item uses a single letter to indicate the kind of completion. This
1124 may be used to show the completion differently (different color or icon). 1135 may be used to show the completion differently (different color or icon).
1125 Currently these types can be used: 1136 Currently these types can be used:
1126 v variable 1137 v variable