vim remove underline from line number

Latest versions defaults to underline:

CursorLineNr term=bold cterm=underline ctermfg=Yellow gui=bold guifg=Yellow

My templates was using only:

hi CursorLineNr    term=bold ctermfg=012 gui=bold

The fix was to define cterm:

hi CursorLineNr    term=bold cterm=bold ctermfg=012 gui=bold

I found the fix for this in the .minttyrc as this was driving me crazy as well.

There is a setting in there for Term=vt100 Edit the .minttyrc in your home dir and comment out or remove the line Term=vt100. Save the file and close the CLI and reopen a new one. The underline should now be gone from vi from then on. I hope this helps.