comparison runtime/doc/insert.txt @ 715:b526e10493b1

updated for version 7.0217
author vimboss
date Tue, 07 Mar 2006 22:29:51 +0000
parents 0f9f4761ad9c
children 587ea89ab80c
comparison
equal deleted inserted replaced
714:0f9f4761ad9c 715:b526e10493b1
1 *insert.txt* For Vim version 7.0aa. Last change: 2006 Mar 06 1 *insert.txt* For Vim version 7.0aa. Last change: 2006 Mar 07
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1076 INSERT COMPLETION POPUP MENU *ins-completion-menu* 1076 INSERT COMPLETION POPUP MENU *ins-completion-menu*
1077 *popupmenu-completion* 1077 *popupmenu-completion*
1078 Vim can display the matches in a simplistic popup menu. 1078 Vim can display the matches in a simplistic popup menu.
1079 1079
1080 The menu is used when: 1080 The menu is used when:
1081 - The 'completeopt' option contains "menu". 1081 - The 'completeopt' option contains "menu" or "menuone".
1082 - The terminal supports at least 8 colors. 1082 - The terminal supports at least 8 colors.
1083 - There are at least two matches. 1083 - There are at least two matches.
1084 1084
1085 There are two states: 1085 There are two states:
1086 1. A complete match has been inserted. 1086 1. A complete match has been inserted.
1090 When "longest" is in 'completeopt' and there is more than one match you start 1090 When "longest" is in 'completeopt' and there is more than one match you start
1091 in the second state. 1091 in the second state.
1092 1092
1093 If you select another match, e.g., with CTRL-N or CTRL-P, you go from the 1093 If you select another match, e.g., with CTRL-N or CTRL-P, you go from the
1094 second to the first state. This doesn't change the list of matches. 1094 second to the first state. This doesn't change the list of matches.
1095
1096 When you are back at the original text then you are in the second state. To
1097 get there right away you can use a mapping that uses CTRL-P right after
1098 starting the completion: >
1099 :imap <F7> <C-N><C-P>
1095 1100
1096 1101
1097 In the first state these keys have a special meaning: 1102 In the first state these keys have a special meaning:
1098 <BS> and CTRL-H Delete one character, find the matches for the word before 1103 <BS> and CTRL-H Delete one character, find the matches for the word before
1099 the cursor. This reduces the list of matches, often to one 1104 the cursor. This reduces the list of matches, often to one