Hi!

To get a more intuitive behaviour of movement through wrapped lines, I
added the following mapping:

   inoremap <down> <c-o>gj

Works fine, but a strange thing appeared. When the editor is in
omni-completion mode (actually, I was editing a docbook file), and I
accidentally press <down> instead of <c-n>, the editor leaves the X
mode, and inserts the next completion item.

For example, inside of a <section> I type:

   1. <               <|
   2. <c-x><c-o>      <sectioninfo|
                       sectioninfo
                       title
                       subtitle
                       ........
   3. <down>          <titlegj|

The bar stays for the cursor here.
Also appeared that when I perform an ordinary keyword completion with
just <c-n> or <c-p> the vim behaves, as I expect.

Can anyone advise me, how to live with this little annoyance?

-- Anatoli Sakhnik
   http://koresha.org/sakhnik
   http://sakhnik.blogspot.com

Reply via email to