On Nov 5, 2013, at 16:00, Ben Fritz <[email protected]> wrote:

> On Tuesday, November 5, 2013 2:24:09 PM UTC-6, Zhao Cai wrote:
>> On Tuesday, November 5, 2013 1:56:56 PM UTC-6, Zhao Cai wrote:
>> 
>>>>> What is wrong with using silent?
>> 
>>>> 
>> 
>>>> 
>> 
>>>> 
>> 
>>>> **silent!** does not suppress this message because internally 
>>>> YouCompleteMe or neocomplete send key ‘<C-x><X-o>’ on CursorMoved to 
>>>> invoke ins-completion.
>> 
>>>> 
>> 
>>> 
>> 
>>> And how does that cause an error? Does the function invoked by <C-X><C-O> 
>>> show the error message? If so, it will be in response to SOME command, 
>>> which should be able to be silenced within the function.
>> 
>>> 
>> 
>> It is not an error but a nuisance. And it does not respond to a command. It 
>> is some vim internal annoying messages - like the hit-enter messages. 
>> 
> 
> OK. But, WHAT CAUSES IT? We're not debating that it's annoying to you. We're 
> suggesting that the proper fix is probably in the plugin code, NOT in the Vim 
> code. You’ve been asked several times now for the code that triggers the 
> message, and for some reason you seem determined NOT to be helpful in solving 
> your own problem.
> 

It has been settled that this cannot be fixed from the plugin side. The reason 
is that it is a normal behavior for vim to output those messages.

To summarize, let’s compare the two basic scenarios of using ins-completion.

A. **manually mode**

User hits `<C-x><C-u>`. If there is nothing to popup for completion, vim gives 
feedback: "Pattern not found".

B. **auto-completion mode**

Autocompletion plugins (YouCompleteMe or neocomplete) trigger `<C-x><C-u>` 
automatially using autocmd such as `CursorMovedI`. Now using the worse case to 
illustrate: the autocompletion plugin cannot find anything to popup, vim 
outputs “Pattern not found” error message repeatedly as you type each 
keystroke. This becomes really annoying.

> -- 
> -- 
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui