Sunday, June 9, 2013

Re: set ft and indent to different type

rudrab <rudra.banerjee@aol.co.uk> a écrit:
> Hello friends,
> I am editing pages using mallard syntax.
> I found a vim.mallard https://github.com/jhradilek/vim-mallard, but it does not content any indent rule, and smartindent is also not working.
>
> I need to use the vim-mallard because it gives good syntax highlighting and omni-complete rules, but I am missing the indent.
> I can use setSyn to xml, but then I will miss both of them.
>
> so, can I use, together with
> "au BufNewFile,BufRead *.page set ft=mallard"
> anything else so that, syntax-highlight and autocomplete rule will come from vim.mallard, and indent rule from xml?

This:

au BufNewFile,BufRead *.page so $vimruntime/indent/xml.vim

should work.

Best,
Paul

--
--
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: