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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:22:54+00:00 2026-05-16T03:22:54+00:00

au InsertEnter * hi Normal ctermbg=233 Doing this causes all the colors from my

  • 0
au InsertEnter * hi Normal ctermbg=233

Doing this causes all the colors from my colorscheme (elflord) to go away and change into defaults. What can I do to stop this or work around it somehow?

  • 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-16T03:22:55+00:00Added an answer on May 16, 2026 at 3:22 am

    There are actually a lot more issues involved with colors than just the ones here, if you want to see them all, I rolled the whole lot into a plugin, which is at:

    http://www.vim.org/scripts/script.php?script_id=3165

    And works with gvim -v, normal vim and gvim in GUI mode.

    Here’s the current version:

    " You can change the colours to ones you like here
    let s:pastel_guibg = '#121212'
    let s:pastel_ctermbg = 233
    
    " +++ Make it obvious which mode we are in
    set laststatus=2 " always show status line
    
    " Makes it VERY obvious if you are in insert mode or not :)
    if version >= 700
    
        function EnterPastel()
            redir => current | silent highlight Normal | redir END
    
            let current = substitute(current, " xxx ","  ", "")
            " Weird junk char at start
            let current = matchstr(current, '\(Normal.*\)')
            redir => background | silent set background | redir END
            let background = matchstr(background, '\(background=.*\)')
            let s:highlight_normal = current
    
            " As pointed out by Dave Kirby, gvim puts font info into there which
            " breaks things. This also revealed a lot of other things to me which
            " aren't working with gvim, i use it in -v mode and didn't realise so
            " I have tried to make it more GUI user friendly.
            let s:gfn = matchstr(current,'\font=\(.*\)$',"","")
    
            let args = split(current, "")
            call filter(args, 'v:val !~ "guibg"')
            call filter(args, 'v:val !~ "ctermbg"')
            let pastel_normal = 'highlight '.join(args).' ctermbg='.s:pastel_ctermbgi.' guibg='.s:pastel_guibg 
    
            if exists("g:colors_name")
                let colors_name = g:colors_name
                unlet g:colors_name
            endif
    
            if exists("g:syntax_cmd")
                let syntax_cmd = g:syntax_cmd
            endif
            let g:syntax_cmd = "Who you lookin at kid?"
    
            exec pastel_normal
            exec 'set gfn='s:gfn
            exec 'set '.background
    
            if exists("colors_name")
                let g:colors_name = colors_name
            endif
    
            unlet g:syntax_cmd
            if exists("syntax_cmd")
                let g:syntax_cmd = syntax_cmd
            endif 
        endfunction
    
        function LeavePastel()
            redir => background | silent set background | redir END
            let background = matchstr(background, '\(background=.*\)')
            if exists("g:colors_name")
                let colors_name = g:colors_name
                unlet g:colors_name
            endif
    
            if exists("g:syntax_cmd")
                let syntax_cmd = g:syntax_cmd
            endif
            let g:syntax_cmd = "Who you lookin at kid?"
    
            highlight clear Normal
    
            if s:highlight_normal !~ "ctermbg="
                " Thanks godlygeek for this one
                let s:highlight_normal = s:highlight_normal." ctermbg=NONE"
            endif
    
            if s:highlight_normal !~ "guibg"
                let s:highlight_normal = s:highlight_normal." guibg=NONE"
            endif
    
            exec 'highlight '.s:highlight_normal
            exec 'set gfn='s:gfn
            exec 'set '.background
    
            if exists("colors_name")
                let g:colors_name = colors_name
            endif
    
            unlet g:syntax_cmd
            if exists("syntax_cmd")
                let g:syntax_cmd = syntax_cmd
            endif 
        endfunction
    
    au InsertEnter * hi StatusLine term=reverse ctermfg=DarkRed ctermbg=7 guibg=black
    au InsertLeave * hi StatusLine term=reverse ctermfg=7 ctermbg=0 guibg=black
    au InsertEnter * call EnterPastel()
    au InsertLeave * call LeavePastel()
    
    endif
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running into a problem. I was using: $(this).parents(tr:first).remove(); to delete the row
I have a function that looks like this class NSNode { function insertAfter(NSNode $node)
$('div#Settings ul li').click(function () { var url, template; var self = $(this); if (!$(self).hasClass('selected'))
On this line I'm trying to select <tr> 's that contain either one of
No idea why, but if ($(this).find(':nth-child(2)').is(span)) { var moveForward = $(this).find(.postInfo.forVideo); $(this).find(':nth-child(2)').insertAfter(moveForward); } Is
I'm trying to load some content into a table using insertAfter(), but the content
Ok so i have this relevant code in jQuery: myself.insertAfter('.archive:last'); 'myself' is just a
I have a problem. I use this code: $( '#wall_msg').clone( true ).insertAfter( '#wall_msg' );
i'm very new to jQuery : I'm trying to render my JSON from a
I've seen this , but it doesn't work for me; I don't get where

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.