Alexey Radkov wrote:

> It is simple.
> 
> Open some C/C++ code in vim (after patch 461), then
> 
> :set cinoptions=:0(0+2s    "this does not really matter, just my settings
> :set cindent
> :autocmd InsertCharPre * let a = 1
> 
> write something like
> 
> int a()
>     {
> 
> Now after you insert <CR> '{' must move to the left as you use cindent.
> After patch 461 it will stay.
> Further, if you use cvim, a closing brace after <CR> will be inserted.
> After patch 461 this will look this way:
> 
> int a()
>     {
>         <CURSOR>
>         }
> 
> <<<  MUST BE
> 
> int a()
> {
>     <CURSOR>
> }
> 
> >>>
> 
> The problem is that in case if InsertCharPre is defined for '*' it will
> always trigger and prevent autoindent of cindent! I am not sure that the
> patch that i sent is completely correct: it just fixes the problem for me.
> 
> Cheers, Alexey.

Yasuhiro, can you reproduce this?

-- 
login: yes
password: I don't know, please tell me
password is incorrect
login: yes
password: incorrect

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui