vim: avioding underlines in line numbers (:set nu) - Editors

This is a discussion on vim: avioding underlines in line numbers (:set nu) - Editors ; Hi! I like to write programming code with the line numbers enabled (:set nu). However, the line numbers displayed by vim are underlined and my screen looks like ____1_First line ____2_Seconde line ____3_Third line Is there any way to _disable_ ...

+ Reply to Thread
Results 1 to 3 of 3

vim: avioding underlines in line numbers (:set nu)

  1. Default vim: avioding underlines in line numbers (:set nu)

    Hi!

    I like to write programming code with the line numbers enabled (:set nu).
    However, the line numbers displayed by vim are underlined and my screen
    looks like

    ____1_First line
    ____2_Seconde line
    ____3_Third line

    Is there any way to _disable_ this underlines?




  2. Default Re: avioding underlines in line numbers (:set nu)


    "xirx" <xirx@gmx.de> wrote in message
    news:45c344db$0$429$4d4ebb8e@read.news.de.uu.net...
    > Hi!
    >
    > I like to write programming code with the line numbers enabled (:set nu).
    > However, the line numbers displayed by vim are underlined and my screen
    > looks like
    >
    > ____1_First line
    > ____2_Seconde line
    > ____3_Third line
    >
    > Is there any way to _disable_ this underlines?
    >


    I found that a ':hi LineNr NONE' does the trick.



  3. Default Re: vim: avioding underlines in line numbers (:set nu)

    In article <45c344db$0$429$4d4ebb8e@read.news.de.uu.net>,
    "xirx" <xirx@gmx.de> wrote:

    > Hi!
    >
    > I like to write programming code with the line numbers enabled (:set nu).
    > However, the line numbers displayed by vim are underlined and my screen
    > looks like
    >
    > ____1_First line
    > ____2_Seconde line
    > ____3_Third line
    >
    > Is there any way to _disable_ this underlines?


    Chances are the 'highlight' for 'LineNr' has 'underline' specified.

    So try the following:

    :highlight LineNr

    And note the settings.

    The create an entry in your .vimrc that specifies something other
    than underline

    hightlight LineNr term=bold
    \ cterm=bold ctermfg=4 ctermbg=3
    \ gui=bold guifg=Brown

    'term' is used for very stupid terminals that do not support color.
    'cterm' 'ctermfg' 'ctermbg' are used for color terminals
    'gui' 'guifg' 'guibg' are for gvim windows.

    And you can get numeric color values from:

    :help cterm-colors

    Have fun.

    Bob Harris

+ Reply to Thread

Similar Threads

  1. How can I toggle line numbers?
    By Application Development in forum Editors
    Replies: 4
    Last Post: 10-11-2007, 07:52 PM
  2. line with numbers
    By Application Development in forum CSharp
    Replies: 1
    Last Post: 08-31-2007, 01:37 PM
  3. Line numbers in the VB6 IDE?
    By Application Development in forum basic.visual
    Replies: 2
    Last Post: 06-08-2007, 12:10 PM
  4. Line numbers?
    By Application Development in forum Clipper
    Replies: 2
    Last Post: 06-01-2007, 03:16 AM
  5. Line numbers in pagemaker 7.0
    By Application Development in forum Graphics
    Replies: 1
    Last Post: 08-16-2005, 01:22 AM