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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:57:31+00:00 2026-06-16T01:57:31+00:00

I am using a Solarized theme for (g)vim, and having an issue with small

  • 0

I am using a Solarized theme for (g)vim, and having an issue with small difference between the screenshot on the site and what I am actually having.

The screenshot for python on the theme’s site is here: here
(source: ethanschoonover.com)
, and mine is this

They have a small difference (that I can see) in import statement (color is different). It sort of drives me crazy. Is my case correct, and that’s what supposed to happen, or my settings are wrong?

I’ve installed the theme using vim-addon-manager plugin system.

Thanks.

  • 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-16T01:57:34+00:00Added an answer on June 16, 2026 at 1:57 am

    The first thing you can check is what :highlight groupings are being applied to your import statement, I have a key mapping for a function which can do this:

    " Show the stack of syntax hilighting classes affecting whatever is under the
    " cursor.
    function! SynStack()
        echo join(map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")'), " > ")
    endfunc
    
    nnoremap <F8> :call SynStack()<CR>
    

    If you :source a file containing this or put this in your .vimrc and reopen vim, we can now check what highlighting is being applied to import.

    When I press F8 on an import I receive the message pythonInclude, now if you don’t see that there may be something wrong with the parsing of python file and the keyword import hasn’t been picked up on. We can then look at what rules are being applied to that-

    :highlight pythonInclude
    

    This gives me-

    pythonInclude  xxx links to Include
    

    If we follow this then we can see what rules are being applied to Include group. This will probably go deeper, Include xxx links to PreProc. If you get this far your highlighting groups are probably correct. If you didn’t link to PreProc there maybe another plugin overwriting the highlight group, or a similar issue. You can then check what colors the PreProc is setting. You can override a highlight group link, :highlight link pythonInclude Function this will now display imports as the same color as Functions!

    You can also modify the colors and formatting applied to different highlight groupings however I will leave you to discover those on your own. Much more help can be found in :h :highlight, but I hope this helps start your debugging process!

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

Sidebar

Related Questions

I tried out the solarized theme (available from here ) and really liked it.
I'm using emacs 24 and solarized color theme. When Emacs starts up, it prompt
I am using nXhtml, flymake and the solarized color theme in emacs 23. Everything
I am having a strange issue with iTerm2, in terminal vim (non-gui) and the
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using import datetime in python, is it possible to take a formatted time/date string
Using MATLAB, you have to start with a uniform distribution between (0,1). You need
I know there is already a plethora of Vim/Emacs and Solarized questions so I
using grep, vim's grep, or another unix shell command, I'd like to find the
I'm relatively new to Vim and have been using it without issues so far.

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.