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 6136917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:39:45+00:00 2026-05-23T17:39:45+00:00

I came across this question: https://softwareengineering.stackexchange.com/questions/87077/how-can-a-code-editor-effectively-hint-at-code-nesting-level-without-using-inde and thought that Vim might be able to

  • 0

I came across this question:
https://softwareengineering.stackexchange.com/questions/87077/how-can-a-code-editor-effectively-hint-at-code-nesting-level-without-using-inde
and thought that Vim might be able to do something similar as well with a plugin.

I believe the indentation level could be indicated with the a sign (icon in GUI, text with highlighting in term). The piece I’m not sure about is displaying the lines without indentation. Does anyone know, is it possible and/or how you would do it?

This question is not whether or not displaying indentation levels in this manner is desirable; but how to accomplish it in Vim.

  • 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-05-23T17:39:46+00:00Added an answer on May 23, 2026 at 5:39 pm

    You could use the conceal feature that is new in 7.3.

    Here is a function that does roughly what the article is describing (for spaces; accounting for tabs instead would be a fairly trivial addition):

    function! IndentationHeatMap()
        set conceallevel=1
        for i in range(1,9)
            let indentation = repeat(" ", &sts * i)
            exe 'syntax match NonText "^' . indentation . '" conceal cchar=' . i
        endfor
    endfunction
    

    A solution closer to what you are requesting might use conceal to hide all leading whitespace with


    syntax match NonText "^\s\+" conceal

    and then use signs to provide the indicators based on custom calculations.

    Note: NonText in these syntax commands is an arbitrary highlight group.

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

Sidebar

Related Questions

I was looking around for jQuery grid recommendations and came across this question/answers: https://stackoverflow.com/questions/159025/jquery-grid-recommendations
I came across this answered question , but I can't seem to compile the
This post started as a question on ServerFault ( https://serverfault.com/questions/131156/user-receiving-partial-downloads ) but I determined
I came across this question: say given two weights 1 and 3, u can
I came across this code http://support.microsoft.com/kb/320348 which made me wonder what would be the
I came across this bit of vba code posted in another SO question. Is
I just came across this question about initializing local variables. Many of the answers
While researching the issue of JSON vs XML , I came across this question
A bit of a neophyte haskell question, but I came across this example in
I came across this class while reading a C# book and have some questions.

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.