> Yes, but it's clearer (to me) than
>
> for (;;)
> {CallFunction();}
It looks like you resort to:
func! MyCindent(l)
let extra = match(getline(prevnonblank(a:l-1)),'^\s*{.*}$')==-1?0:-&sw
let extra += match(getline(a:l),'^\s*{.*}$')==-1?0:&sw
return cindent(a:l)+extra
endfunc
:let &l:indentexpr='MyCindent(v:lnum)'
:setlocal cinkeys+=}
Ben.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---