On Tue, May 09, 2006 at 11:27:02PM +1000, Robert Webb wrote:
> I'm still finding the ^P/^N behaviour in insert mode kind of annoying.
> I just did something like this:
>     - Edit a file with the text "numMatches" in it.
>     - Type "numMb" and hit ^P.
>     - It's a typo so no matches come up.  In the meantime vim starts
>       madly searching through header files in the background.
>     - Hit <BS>, then "a" to give the text "numMa".
>     - Now it should find the right match.  Vim still seems to be
>       searching in the background.  Is it supposed to find the correct
>       match now straight away?  It doesn't.  Or is it up to me to hit
>       ^P again?
>     - If I hit ^P again, nothing happens.  I can repeatedly hit it and
>       no matches are found and no menu appears (note: all this is
>       still while vim is searching in the background).  In 6.3 this
>       would have given me the right match.
>     - So instead I try ^N.  Now a menu appears with my original text
>       ("numMa") and the match I want ("numMatches"), but no matter how
>       many times I hit ^N it just stays stuck on the first item which
>       was my original text!  It's stuck again in a similar way to what
>       I described in another email.
> 
> What is supposed to happen when you hit <BS> then hit another letter
> during completion mode?
> 
> I still think ^N/^P should wrap around the matches found so far while
> bim is searching in the background.

     I tried this (using a different "wrong" character since this e-mail
contains "numMb" in it).  Vim did not seem to search madly for matches,
but I did notice one annoyance.  After I got to the "numMa" stage, the
completion menu shoed two options:  "numMa" and "numMatches", but
neither was highlighted.  Hitting <C-N> cycled through three states:
one or the other option was highlighted, or neither.  Two of these
options have the same text, "numMa", in the buffer.

HTH                                     --Benji Fisher

P.S.  There have been times when hitting <C-N> removed characters that I
had typed, and I had to re-type them.  I have not been able to figure
out how to reproduce this. :-(

Reply via email to