Monday, June 10, 2013

Re: set ft and indent to different type

On Monday, June 10, 2013 10:57:47 AM UTC-5, Christian Brabandt wrote:
> On Mon, June 10, 2013 17:26, Ben Fritz wrote:
>
> > On Sunday, June 9, 2013 5:44:06 PM UTC-5, Paul Isambert wrote:
>
> >>
>
> >> au BufNewFile,BufRead *.page so $vimruntime/indent/xml.vim
>
> >>
>
> >> should work.
>
> >>
>
> >
>
> > Even better, if you replace that command with "runtime! indent/xml.vim"
>
> >
>
>
>
> But make sure, to unset the b:did_indent variable, otherwise the
>
> script probably won't be loaded (e.g. :unlet! b:did_indent)
>

Or, create your own ~/.vim/indent/mallard.vim file (I assume that's the right filetype).

It should have one line only:

runtime! indent/xml.vim

Then there should be no need for autocmds or setting/unsetting b:did_indent or whatever.

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: