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.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
--- ../vim72/runtime/indent/c.vim 2007-10-27 19:16:56.000000000 +0200
+++ runtime/indent/c.vim 2008-11-11 04:57:52.000000000 +0100
@@ -10,6 +10,6 @@
let b:did_indent = 1
" C indenting is built-in, thus this is very simple
-setlocal cindent
+setlocal cindent indentexpr=
let b:undo_indent = "setl cin<"