Andrei A. Voropaev wrote:
On Fri, Apr 27, 2007 at 06:51:47AM +0200, A.J.Mechelynck wrote:
[...]
Completion continues until:
- You type a non-word character, such as a space or a comma;
This is not 100% correct. It continues untill space or Enter is
encountered. Coma, ( { etc are not counted.
When I type a comma, it closes the popup. Of course, the comma is not included
in 'iskeyword' here. If you modify that, the comma will not be recognised as a
separator, and you'll get menu items with commas in the middle of them if they
are found in the files Vim uses to find completions.
- You type a special key which is not used to continue completion;
Can you please name one such key?
Sure. <Esc> is one such key: it accepts what has been completed, closes the
popup, and switches to Normal mode. Then you aren't in completion mode anymore.
- You add a letter for which no completion is found.
This is incorrect. Even if I type the word that can't be completed, the
completion stays on. Which I find very strange and inconvinient.
I don't know what you're using, but on my version of Vim and my vimrc it _is_
correct. (Not that I change much to how completion behaves by default:
'complete' is at its default of ".,w,b,u,t,i" and "completeopt" is
"menuone,preview" instead of the default of "menu,preview".) When I add a
letter after the completion, and there are no matches anymore, the popup
closes (and what had been completed before the last letter I typed, stays
there). Very intuitive and very convenient.
So, I think the older versions of vim behaved differently here, that is
why I haven't learned to use the Ctrl-E or Ctrl-Y. And now, with release
7 I have to adopt new habit of using these.
Best regards,
Tony.
--
Cold, adj.:
When the local flashers are handing out written descriptions.