On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Yes... but unfortunately there is a fair amount of tips where the
> > > original indentation itself is quite bad :)
>
> Can't we just use vim to reindent vim code-snippets ? (supposing we can detect
> them)

I was thinking about using a Wikipedia.vim indent plugin... which would
in fact be a copy of the vim.vim indent file. It would be useful for a
good proportion of the code-snippets: just reindent with = as usual.

For all the other code snippets, we would have to use :setf before
reindenting, or use the GetOriginalIndent() trick.

I will detail this in the Meta tips page during the week-end.

Cheers,
-- 
Olivier
_______________________________________________
Vim-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/vim-l

Reply via email to