Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vim -- how to prevent underlining line numbers?

2,423 views
Skip to first unread message

s...@bob.eecs.berkeley.edu

unread,
Oct 4, 2000, 3:00:00 AM10/4/00
to
Under some conditions (see below **), with the "set nu" option set,
vim will annoyingly underline the line numbers. Is there a
way of defeating this? Thanks,

Steve

** Vim version 5.6.70, under debian linux, or Vim version 5.3 under
freebsd, causes this problem when using TeraTerm VT100
emulation with the "Fixedsys" font.

The problem does not occur if the "Courier" font is used.

The problem does not occur with Vim version 3.22 BETA under SunOS.


Rafael Garcia-Suarez

unread,
Oct 5, 2000, 3:00:00 AM10/5/00
to
s...@bob.eecs.berkeley.edu wrote in comp.editors:

>Under some conditions (see below **), with the "set nu" option set,
>vim will annoyingly underline the line numbers. Is there a
>way of defeating this? Thanks,

Yes, change the default highlighting for the LineNr highlight group in
your .vimrc file. See ':help highlight-groups'.

--
# Rafael Garcia-Suarez / http://rgarciasuarez.free.fr/

s...@bob.eecs.berkeley.edu

unread,
Oct 7, 2000, 3:00:00 AM10/7/00
to
Rafael Garcia-Suarez <rgarci...@free.fr> wrote:

>s...@bob.eecs.berkeley.edu wrote in comp.editors:

>>Under some conditions (see below **), with the "set nu" option set,
>>vim will annoyingly underline the line numbers. Is there a
>>way of defeating this? Thanks,

>Yes, change the default highlighting for the LineNr highlight group in
>your .vimrc file. See ':help highlight-groups'.

Thanks for the advice. I've now looked at this description under help,
but it's pretty poorly written and I cannot figure out the syntax for
turning off line number underlining. If anyone could describe
this to me I'd be grateful.

Thanks again

Steve

Rafael Garcia-Suarez

unread,
Oct 9, 2000, 2:38:49 AM10/9/00
to
s...@bob.eecs.berkeley.edu wrote in comp.editors:

To get the current line number highlighting:
:hi LineNr
this will show the highlighting values for different kinds of
environments. You probably have "term=underline". You can change it
with:
:hi LineNr term=NONE
This will remove all highlighting for line numbers.

s...@bob.eecs.berkeley.edu

unread,
Oct 10, 2000, 3:00:00 AM10/10/00
to
Rafael Garcia-Suarez <rgarci...@free.fr> wrote:

>To get the current line number highlighting:
> :hi LineNr
>this will show the highlighting values for different kinds of
>environments. You probably have "term=underline". You can change it
>with:
> :hi LineNr term=NONE
>This will remove all highlighting for line numbers.

Rafael -- thanks, this did the trick.

(I still believe the rightfully, "vim -u" with "set compatible"
in one's .vimrc should disable any non-standard-vi-like highlighting,
but apparently it doesn't...just another bug i guess)

S.

deb.dep...@gmail.com

unread,
Feb 9, 2015, 2:11:37 PM2/9/15
to
I just want to add thanks to all posters... you just answered all "both" of my questions.

Here's my .vimrc:

1 set number
2 hi LineNr term=NONE

and it works thanks to your help.
-Deb
0 new messages