On Wed, 10 May 2006, Suresh Govindachar wrote:
Bram Moolenaar wrote: > Suresh Govindachar wrote: > >> version 7.0.1 >> gvim --noplugin -u NONE -U NONE >> and type ifooey and do i_CTRL-X s >> >> Message at bottom will say: "match 1 of 100" > > I get "Spell checking is not enabled". Did you do ":set spell"?Yes, I did :set spell before ifooey. >> Hit <up-arrow> >> Message at bottom will say: "Back at original" >> >> BUT BUG: 1) word in buffer is Phooey (not original word). >> 2) <esc> will result in buffer having Phooey in it. > > Using the cursor only selects another entry, it doesn't insert > it. Use Enter to insert the match (original text). Preceding intent is not happening. :set spell<cr>ifooey<C-X>s<UP> Now match 1 of 100 (Phooey) does get inserted in buffer even though message at bottom says "Back at original"; and then hitting <ESC> leaves buffer with Phooey.
Confirmed for 7.0 release. It seems that i_up-arrow & i_down-arrow work un-intuitively as compared to i_ctrl-p & i_ctrl-n, respectively. i_up/down-arrow merely selects the word from the pop-up menu. In order to accept or decline the selected word, Ctrl-y or Ctrl-e, respectively, is needed. For example, after i_ctrl-x s, to get the original word back again, you could do either: 1. i_ctrl-e to decline the suggestion 2. i_up-arrow followed by i_ctrl-y to accept the original To make the arrow keys function like Ctrl-n/p, you can do: inoremap <Down> <C-r>=pumvisible()?"\<lt>C-n>":"\<lt>Down>"<CR> inoremap <Up> <C-r>=pumvisible()?"\<lt>C-p>":"\<lt>Up>"<CR> -- Gerald
