Bram Moolenaar wrote:
> 
> A few people complained that Insert mode completion doesn't work as
> expected, especially when 'completeopt' contains "longest".  This is
> mostly because Vim continues completion mode even when typing a non-word
> character.
> 
> Below is a patch that changes the behavior.  When completing a word with
> CTRL-N and typing a non-word character Vim stops completion mode. Thus
> if you type something like this:
> 
>       asdfasdf
>       asd<C-N>:asd<C-N>
> 
> Previously the second <C-N> would not work, because you are completing
> "asdfasdf:asd".  After the patch typing the ":" stops completion mode, so
> that the second <C-N> complets "asd".
> 
> Let me know what you think.
> 
> *** ../vim-7.1.135/src/edit.c Thu Sep 13 18:25:08 2007
> --- src/edit.c        Wed Oct  3 15:54:57 2007
[...]

I've tried it for a day and a half:

VIM - Vi IMproved 7.1 (2007 May 12, compiled Oct  5 2007 16:27:16)
Included patches: 1-135
Modified by Bram Moolenaar (insert-expand)
Compiled by [EMAIL PROTECTED]
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
[...]

and I like it. AFAICT, it works as advertised.


Best regards,
Tony.
-- 
The marvels of today's modern technology include the development of a
soda can, when discarded will last forever ... and a $7,000 car which
when properly cared for will rust out in two or three years.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui