* Charles Campbell (Charles.E.Campbell@nasa.gov) 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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, January 23, 2018
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment