Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8827763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:26:58+00:00 2026-06-14T07:26:58+00:00

Is there a way to highlight only the current line number (in the left

  • 0

Is there a way to highlight only the current line number (in the left hand coloumn) in vim, without highlighting the background of the current line? Ideally, I would Like to make the current line number bold.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:27:01+00:00Added an answer on June 14, 2026 at 7:27 am

    There are two groups that determine highlighting of line displayed when &cursorline option is active: CursorLine and CursorLineNR. First is used to highlight the whole line, second for the line number. So to achieve what you want you must

    1. Clear the highlighting of CursorLine: just hi clear CursorLine after any :colorscheme and set background= call.

      hi clear CursorLine
      augroup CLClear
          autocmd! ColorScheme * hi clear CursorLine
      augroup END
      
    2. Set the highlighting of CursorLineNR if it is not set in your colorscheme:

      hi CursorLineNR cterm=bold
      augroup CLNRSet
          autocmd! ColorScheme * hi CursorLineNR cterm=bold
      augroup END
      

      (better to check whether it is already set in the colorscheme, maybe it will look better in that case).

    You can join both autocommands in one of course.

    CursorLineNR has been added relatively recently around version 7.3.488.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to highlight the first link, and only the first link,
Is there a way to highlight duplicate lines in Vim, in a file, BUT
I’m using the jQuery UI Autocomplete plug-in . Is there a way to highlight
Is there a way to programmatically highlight an imageview in android? I am showing
Is there a way to do a selection highlight over all elements in a
Is there any way to highlight javascript syntax by eclipse (pdt) in a phtml
In Solr, when performing a proximity search, is there a simple way to highlight
I have set cursorline in my vimrc. Is there any way to make vim
is there a way to get the highlighted selectionstart and selectedlenght on a span
Is there any way I can get my Python code syntax highlighted in Microsoft

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.