BUT, this is not the responsibility of c.vim! now i had to add this
line to c.vim, but it should be done by Vim when i changed the
filetype! because every indent script should define a variable named
"b:undo_indent", and Vim will "exec b:undo_indent" when it use a new
indent (see indent.vim in vim folder, it's very clear.). first bug is
caused because "vim.vim" didn't have a b:undo_indent, and second bug
is caused Vim didn't exec b:undo_indent when we edit a second file in
the first buffer!!

On 11月11日, 下午12时04分, Tony Mechelynck <[EMAIL PROTECTED]>
wrote:
> On 11/11/08 04:39, Tony Mechelynck wrote:> On 10/11/08 09:58, StarWing wrote:
> [...]
> >> second bug:
> >> open Vim, and type :setf vim, now type :edit a.c then you can see some
> >> settings in Vim:
> >> :set: inde indk
>
> >> they are still value in filetype Vim.
>
> >> Solution: can't find.
>
> [...]
>
> P.S. I think the "real" solution would be to add the line
>
>         setlocal indentexpr=
>
> in indent/c.vim
>
> since C indenting uses only 'cindent', not 'indentexpr', and any
> nonempty setting of the latter will prevent Vim from using the former.
> Proposed patch is attached (for Bram).
>
> In the meantime, add that same line to $VIM/vimfiles/after/indent/c.vim
> (creating any not-yet-existent file and/or directories as you go along).
>
> Best regards,
> Tony.
> --
> Langsam's Laws:
>         (1) Everything depends.
>         (2) Nothing is always.
>         (3) Everything is sometimes.
>
>  c.vim.diff
> < 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to