vim html highlight not work.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

vim html highlight not work.

Zhe Lee
The filetype is html, and syntax is on.

 the html.vim is in the \Vim\vim80\syntax\. But the html still not highlight


why is that?

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

0121210145.png (39K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: vim html highlight not work.

Charles Campbell
Zhe Lee wrote:
> The filetype is html, and syntax is on.
>
>  the html.vim is in the \Vim\vim80\syntax\. But the html still not highlight
>
>
> why is that?
>
What does  vim --version  (or :version when running vim) show?  In
particular, do you have +syntax or -syntax?  You'll need to have the
former to be able to have syntax highlighting.  You do realize that
html.vim itself will be highlighted according to vim's own syntax rules,
not html's.

What does :echo $VIMRUNTIME show -- and do you a) have syntax files in
$VIMRUNTIME/syntax, and b) have permission to read them at that location.

By "html.vim" are you referring to the syntax highlighting file that
came with vim or are you attempting to make your own?  If the latter,
you really should not be overwriting the vim version, rather you should
be putting it into $HOME/.vim/syntax .

Regards,
Chip Campbell


--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: vim html highlight not work.

Gua Chung Lim-2
* Charles Campbell ([hidden email]) wrote:

> Zhe Lee wrote:
> > The filetype is html, and syntax is on.
> >
> >  the html.vim is in the \Vim\vim80\syntax\. But the html still not highlight
> >
> >
> > why is that?
> >
> What does  vim --version  (or :version when running vim) show?  In
> particular, do you have +syntax or -syntax?  You'll need to have the
> former to be able to have syntax highlighting.  You do realize that
> html.vim itself will be highlighted according to vim's own syntax rules,
> not html's.
>
> What does :echo $VIMRUNTIME show -- and do you a) have syntax files in
> $VIMRUNTIME/syntax, and b) have permission to read them at that location.
>
> By "html.vim" are you referring to the syntax highlighting file that
> came with vim or are you attempting to make your own?  If the latter,
> you really should not be overwriting the vim version, rather you should
> be putting it into $HOME/.vim/syntax .
It also depends on your terminal.
Are you using a native terminal or ssh to it?
What does echo $TERM print? Is it xterm?
Make sure I have set :syntax on.

--
Gua Chung Lim
 
To live is to love.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.