Commit bfd70f7
committed
fixed auto insert for rope complete
For details, see `:h completeopt` in vim.
vim has many flags of option &completeopt, the flags like menu, menuone,
noinsert, noselect and so on control the autocomplete behaviour.
e.g. if the set completeopt=menu, and there's only one possible
completions, the vim will not popup a menu and just insert the
completions, this like auto insert __init__ describe above, user there's
no chance to confirm the completions they want or not.
but if set completeopt=menuone,noinsert, vim will popup menu also when
there is only one match. for case above, vim will popup a menu with one
completion item __init__ and let user choose insert it or escape, if add
noselect with &completeopt, vim will even not selected the first
completion item.1 parent ac97c66 commit bfd70f7
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
0 commit comments