Thursday, January 31, 2013

Re: Syntax highlight not happening on :newtab

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?

From the help:

*:filetype* *:filet*
To enable file type detection, use this command in your vimrc: >
:filetype on
Each time a new or existing file is edited, Vim will try to recognize the type
of the file and set the 'filetype' option. This will trigger the FileType
event, which can be used to set the syntax highlighting, set options, etc.

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

Post a Comment