Search code examples
htmlvimsyntax-highlightingvim-syntax-highlighting

Disable ampersand error highlighting in vim on HTML5 files


In vim, is it possible to disable error highlighting for ampersand (&) symbols used by itself?


Solution

  • Run this :

    :hi Error NONE
    

    It disables error highlighting.

    If you want to do it only for a pattern(like &) then check this.