Thursday, July 17, 2014

RE: Question about setting default syntax highlighter

Carfield Yim wrote:
> Hi, I need to use vim to edit config files for Visual Studio
> project a lot, all the config file are XML but edit with
> *.conf. How can I config vim to use XML syntax highlighter for
> all *.conf file?

See the example at
http://vim.wikia.com/wiki/Filetype.vim

Sorry it's a bit hard to follow, but where it says:

au! BufNewFile,BufRead *.csv setf csv

you need:

au! BufNewFile,BufRead *.conf setf xml

John


--
--
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/d/optout.

No comments:

Post a Comment