Vim syntax highlighting: how to stop the automatic underlining of <a href=..>?

When I type a HTML element a, there is always a underline. I want to stop this, but do not know how?

I'm talking about the vim syntax highlight.


Solution 1:

Make a copy of the html.vim syntax highlighting definition.

mkdir -p ~/.vim/syntax
cp /usr/share/vim/vim73/syntax/html.vim ~/.vim/syntax/
# "vim72" for version 7.2
vim ~/.vim/syntax/html.vim

Find this line: (should be around line 248)

    HtmlHiLink htmlLink                    Underlined

To disable styling completely, comment out the line (prefix with a " double-quote).

To change appearance, replace the Underlined part with a different highlight definition (such as htmlBold, or define your own: there are several examples just below that line).