vim remove underline from line number

Viewed 3935

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

vim underli

2 Answers

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.

Related