On Sunday, Feb 09, 2025 at 10:31 PM
Steve Litt <
sl...@troubleshooters.com> wrote:
> Tony Mechelynck said on Mon, 10 Feb 2025 02:50:04 +0100
>
> >On Sun, Feb 9, 2025 at 9:39 PM <
chai...@fourbarlinkage.net> wrote:
> >>
> >> On Sunday, Feb 09, 2025 at 03:28 PM
> >> Steve Litt <
sl...@troubleshooters.com> wrote:
> >>
> >> > Is there a command line way to run gvim with a #ccffff color
> >> > background?
> >> >
> >> > Thanks
> >> >
> >> > SteveT
> >> >
> >> > Steve Litt
> >> >
http://444domains.com
> >> >
> >>
> >>
> >> :highlight Normal guibg=#ccffff
> >
> >To run it always with that background, add the above line to your
> >vimrc.
> >
> >To do it once, run either
> > gvim --cmd "hi Normal guibg=#ccffff"
> >or
> > gvim -c "hi Normal guibg=#ccffff"
>
>
> Thanks Tony and Chainsaw. This is what I needed, and I put it in my
> menu.
>
> SteveT
>
> Steve Litt
>
>
http://444domains.com
>
Here is another way triggered after loading a/any color scheme.
Say you want this to happen when you change to dracula colorcsheme:
augroup ColorschemeTweak
autocmd!
autocmd ColorScheme dracula highlight Normal guibg=#ccffff
augroup END
Or for any colorscheme:
augroup ColorschemeTweak
autocmd!
autocmd ColorScheme * highlight Normal guibg=#ccffff
augroup END