Reputation: 26955
I upgraded vim (macOS) using brew:
$ brew info vim
vim: stable 8.1.2100 (bottled), HEAD
After the upgrade, the line numbers at the right are underlined, for example, from the attached picture line number 1 appears like 1_____
, any idea how to remove the underline?
Happens only when having :set relativenumber
Upvotes: 14
Views: 5957
Reputation: 301
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.
Upvotes: 1
Reputation: 26955
Latest versions defaults to underline: https://github.com/vim/vim/blob/017ba07fa2cdc578245618717229444fd50c470d/src/highlight.c#L256
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
Upvotes: 16