On 2013-01-31, Ben Fritz wrote:
> On Thursday, January 31, 2013 12:01:53 PM UTC-6, Gary Johnson wrote:
> >
> > The "filetype on" command is not needed for "syntax on" to work.
> >
>
> But, doesn't Vim use the filetype to figure out which syntax file to load?
Yes, but if filetype detection is not already enabled when "syntax
on" is executed, the syntax system enables it itself.
The command "syntax on" sources the file
$VIMRUNTIME/syntax/syntax.vim. You can see in that file where
"filetype on" is executed.
Regards,
Gary
--
--
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.
Thursday, January 31, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment