Disable underlining http links in vim


When editing a html file in vim, the http links are automatically underlined by default. To disable it do the following.

 $cp /usr/share/vim/vim72/syntax/html.vim ~/.vim/syntax/
 $vi ~/.vim/syntax/html.vim

Then comment the following line (Line 248):

HtmlHiLink htmlLink                    Underlined



  


Comments:

  changer  Sep 08, 2019

Update: For Ubuntu18.04, cp /usr/share/vim/vim80/syntax/html.vim ~/.vim/syntax/ and comment the line: "hi def link htmlLink Underlined


Write a comment
Anonymous

Captcha image

Reload

Type the number you see in the image above: