Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [colorscheme]

A colorscheme is a Vim script which sets the colors to be used for the highlight groups.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Neovim 0.10 syntax highlight is completely broken

Yesterday I updated NeoVim to 0.10 and this is how, e.g., JavaScript code looks like: Although it used to look this way (now it's a screenshot from Vim): I've found this question on SO: https://...
d.k's user avatar
  • 694
1 vote
2 answers
122 views

How to remove incorrect red background for the correct code?

In modern Perl the concept of function signature was introduced. I looks like this: # old style: sub my_sub { my $param = shift; # ... } # new style: sub my_sub ($param) { # ... } When I ...
user4035's user avatar
  • 179
1 vote
1 answer
63 views

How can I quickly see/test/check all colorschemes available in Vim?

I want to quickly see all colorschemes available in Vim, without having to click many places or run a lot of manual commands. Is there an automated way to do that?
awvalenti's user avatar
  • 269
2 votes
2 answers
119 views

Neovim has wrong background setting

I'm having a trouble with Neovim colors when using my vimrc file as Neovim's init.vim. Here's the expected look, how it looks in Vim: And here is how it looks in Neovim: I guess that's because of ...
d.k's user avatar
  • 694
0 votes
1 answer
38 views

Text randomly shown in italics after being sent to a REPL with iron.nvim

Some parts of my code, apparently at random, are rendered in italics, and when I type it goes back and forth from italics to normal. Why is that and how I can avoid that? EDIT: Contrary to what I ...
robertspierre's user avatar
1 vote
0 answers
32 views

Neovim built-in colors apply different when copied to local config dir

Neovim interprets a built-in colorscheme differently when the same file is used in my user directory. nvim (and vim) both ship with a built-in colorscheme named delek. I copied /usr/local/share/nvim/...
drootang's user avatar
  • 111
2 votes
2 answers
136 views

What defines default colors for highlight groups not present in a color scheme?

After updating to vim 9.1 yesterday, diff highlighting colors were broken for me. Comparing with an older vim (7.4) on a different machine, it seems that the cause was probably a change in the diff....
l4mpi's user avatar
  • 855
1 vote
1 answer
38 views

How to change color scheme in a csv plug-in?

I learnt from this post that there is a csv plug-in. I tried this plug-in and it indeed arranged the csv file well. However, the color scheme is horrible on my screen. Is there anyway that I can ...
cat's user avatar
  • 33
1 vote
1 answer
265 views

Error when trying to set Kanagawa colorscheme

I installed Kanagawa plugin using vim-plug. When I tried to change the colorscheme with: :colorscheme kanagawa I got the following error : >- Error detected while processing /home/mmip/.local/...
armandfavrot's user avatar
1 vote
0 answers
311 views

Set default light and dark themes

How can I set the default colorscheme according the current shell light/dark theme? I thought about using an if..else statement reading the background variable, but on my light theme terminals, ...
SystematicFrank's user avatar
0 votes
1 answer
68 views

I've switched to nvim and init.lua, which pulls in onedark colorscheme. How can I add a custom rule?

I have C-style comments inside PHP strings that contain SQL code, so I can easily understand what the query is doing when I see it running on the server. DB::runQuery('/* this is my SUPER complicated ...
Codemonkey's user avatar
0 votes
0 answers
141 views

What options do I have to give time-only (i.e dependent on a call to a DB via http) dependent coloring to the words matching a regex?

Say the special strings are those matching the regex \<prefix[0-9]\+\>, and say that an HTTP request I can do via system can tell me that that item is in one of three states, Green, Red, or Blue....
Enlico's user avatar
  • 2,214
0 votes
0 answers
41 views

Query terminal colors via OSC11

Is it possible to query the terminal colors via OSC-11 used in highlight groups? Similar to what is done here https://github.com/neovim/neovim/blob/5d8ab32f3871b0232972cac1116ac7cba98389e5/src/nvim/...
crawl_soever's user avatar
1 vote
1 answer
51 views

How to configure my own highlight for Vim editor in Linux using ~/.vimrc and ~/.vim/colors/mycolors.vim files? [closed]

I want to configure and customize my own syntax highlight for Vim editor in Linux Ubuntu 20.04. In my home directory, I created two files, ~/.vimrc and ~/.vim/colors/mycolors.vim. Here is the full ...
morris's user avatar
  • 11
0 votes
1 answer
50 views

gVim: change colorscheme base on os (desktop) theme

How can I set two color schemes in vim, one when the desktop theme is light and one when the desktop theme is dark? It is particularly useful when using gVim, plugin suggestions are welcome
SinaMobasheri's user avatar
0 votes
0 answers
29 views

Override the color of a airlinesection when entering insert mode

I want to override a section in airline with my own color when I enter insert mode. Im using the PlugIn pencil and I want to change the color of PencilMode. This is the section I want to override. let ...
Bernd's user avatar
  • 11
0 votes
1 answer
47 views

Adding Colorscheme to Neovim conditionally?

I'm trying to create a status line and get the color scheme correctly. I have the function function GetDiagnosticErrorCount() local errorCount = #vim.diagnostic.get(0, { severity = vim.diagnostic....
Marc's user avatar
  • 113
1 vote
1 answer
310 views

How do I change the color of the deleted text on the left side of a vimdiff?

My colors currently look like this, with the text highlighted green on both sides: I would like it to be red on the left, and green on the right. I tried to change the DiffDelete highlight, but that ...
vinnydiehl's user avatar
0 votes
1 answer
133 views

Is there any way to set ccze color scheme?

I want to use ccze color scheme for log file specific. augroup LogColorscheme autocmd! autocmd FileType log colorscheme ccze augroup END However, this installed color scheme on system-wide ...
maxemilian's user avatar
0 votes
1 answer
163 views

How does vim color theme set highlight groups?

Usually, I edit a highlight group like this: hi typescriptAliasDeclaration guifg=#b58900 But when I look inside an exampleColorTheme.vim, I cannot see any mention of these highlight groups. So how do ...
Vinn's user avatar
  • 781
0 votes
0 answers
52 views

Colorscheme becomes weird after re-installing Vim

I'm using vim on windows 10. I just finished re-installing my Vim, without removing all of the installed plugins or even changing any configuriations in _vimrc. now when i start vim, my colorscheme ...
ben's user avatar
  • 11
0 votes
2 answers
263 views

Syntax highlighting with only some allowed colours

In my ubuntu gnome-terminal I have vims default syntax highlighting color scheme + some color-tuning made in my gnome-terminal to filter out most colors with green except red, purple and brown. ...
MD. Mohiuddin Ahmed's user avatar
0 votes
1 answer
548 views

Make colorscheme change when background change

I have a shortcut to set the background light, dark, or transparent. I want to use a different color scheme for when it is dark or light. How would I go about implementing it? I don't know programming ...
enrico223's user avatar
2 votes
2 answers
786 views

How to install Vim configuration from github?

I am new to vim and Linux in general. I am using Vim on Windows Subsystem for Linux with ubuntu as OS. I really like this neodark.vim theme and wish to use it for my Vim editor. I would like to know ...
Atharva's user avatar
  • 25
1 vote
0 answers
3k views

NvChad: How to add a theme into the builtin list of `nvchad themes`?

I have installed a new theme called "rigel" in NvChad. I can switch to this theme from commandline using the command :colorscheme rigel. Is it possible to add this theme to the builtin list ...
Mert Nuhoglu's user avatar
-1 votes
1 answer
188 views

How can I remove inverted background colors with Dracula colorscheme?

I'm using Dracula colorscheme without anything in .vimrc byte/int/void has background highlight, how can I disable it ? Update: removing hi! link Type DraculaCyanItalic worked
whoopdedoo's user avatar
0 votes
2 answers
639 views

How to remove the default colorschemes from Vim/Neovim?

The only other answer I found is from 2012, it is not accurate anymore and it is on Stack Overflow. I would like to see them gone. I don't like any of them and they are clutter. So, how does one ...
cassepipe's user avatar
  • 385
0 votes
1 answer
80 views

color/colorscheme

As you can see in both the vimrc.plug and vim.rc files they both seem to be working in terms of gruvbox. I have syntax on, but when I type Vim into terminal and start typing or open a specific file ...
nevann copeland's user avatar
0 votes
2 answers
94 views

How to make /usr/local/share/vim/vimfiles visible?

I want /usr/local/share/vim/vimfiles/pack be used for local packages. I added the following to /etc/vimrc.local set runtimepath+=/usr/local/share/vim/vimfiles When I start vim I see that runtimepath ...
Konstantin Glukhov's user avatar
1 vote
1 answer
27 views

How to turn off highlighting/colors for changes/current edits?

Recently (within the past year?) vim has started tracking changes as I edit, and highlighting those changes with a different color. I've given it a try, but I'd like to turn that specific feature off ...
Angelo's user avatar
  • 113
0 votes
1 answer
152 views

Is it possible to store the current colorscheme into a session?

As title. I have to use some colorscheme to make my reading experience better on certain filetype. I have made an auto session plugin myself but I don't know how to store the colorscheme info I'm ...
NeoZoom.lua's user avatar
  • 1,510
0 votes
1 answer
102 views

Some coloring only visible if I set `hi Normal guibg=NONE`?

I just encountered one more tricky coloring problem. If I set hi Normal guibg=NONE I will get the effect I want: But if I disable the transparent background by setting that guibg to anything else, I ...
NeoZoom.lua's user avatar
  • 1,510
0 votes
1 answer
972 views

Error when trying to set a color scheme

My init.vim is placed in ~/.config/nvim/ and has the following in it: call plug#begin() Plug 'folke/tokyonight.nvim', { 'branch': 'main' } Plug 'nvim-tree/nvim-tree.lua' Plug 'nvim-tree/nvim-web-...
alpastor's user avatar
  • 115
0 votes
0 answers
166 views

Neovim colorscheme applying differently

I am trying to get this darkplus colorscheme to apply correctly in my neovim setup but the colors are off completely. When I run :colorscheme it returns default and when I run the command :colorscheme ...
Braden Helmer's user avatar
1 vote
1 answer
49 views

Prevent terminal background from leaking through

A black or dark gray background seems to leak into my Vim instance on cells where there are no characters. Is there any way to prevent this, and to use the color scheme background instead, other than ...
prolyx's user avatar
  • 143
0 votes
2 answers
3k views

How to integrate an own Vim color scheme into Neovim?

I'm on macOS Ventura with iTerm2. I've made a color scheme for Vim in ~/.vim/colors/myowncolorscheme.vim. Is it possible to use it in Neovim? If yes, how do I do that? In my ~.vimrc I integrate it ...
Manny's user avatar
  • 1
1 vote
2 answers
3k views

Color theme displayed wrong

I could really use some help here... I have just migrated my nvim setup to all Lua and changed some plugins. I have added nvim-treesitter and tried a few themes. The themes change OK and get applied, ...
Mr Matten's user avatar
  • 111
0 votes
1 answer
180 views

How to synchronize background with terminal using solarized colorscheme with neovim

When I toggle my terminal from a dark to light colorscheme, neovim doesn't match: If my terminal is dark and I open nvim, nvim is dark (:set bg says dark) If my terminal is light and I open nvim, ...
rcorre's user avatar
  • 153
0 votes
2 answers
233 views

Are there color variables for various programming languages? [closed]

I know, in Vim I can get a list with variables for color themes with the command :hi. But there are not the programming languages I need. Is there a way to get specific color variables for JavaScript, ...
Manny's user avatar
  • 1
1 vote
2 answers
790 views

How do I hightlight the gutter in vim/nvim?

As you can see in the image below, I have this weird highlight on my gutter. I'd be great if I could make that transparent. How can I do it? EDIT: I just found out that I can do :higlight SignColumn ...
Diwas10's user avatar
  • 115
1 vote
2 answers
742 views

How do I restore normal colorscheme?

Upon launching vim, if I enter colorscheme the output is default. If I enter colorscheme default the colorscheme changes. If I change the colorscheme from the default to any other colorscheme and then ...
Jonathan Strange's user avatar
0 votes
0 answers
181 views

How to set background color of lines in IndentLine?

I'm trying to configure Yggdroot/indentLine to use the same background color as used in whatever color scheme I'm using, that is I'd like the gray parts to have the same color as the background. From ...
flawr's user avatar
  • 185
2 votes
1 answer
387 views

How Can I Use The Error Color for `guibg` and `ctermbg`

I have the following Vim code which highlights trailing whitespace in red: highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ But instead of making the color "red"...
Amarakon's user avatar
  • 261
0 votes
0 answers
31 views

Can I set the text color when syntax is off?

I want syntax off but I want to pick a different text color. Do I have to find the relevant setting in my color scheme? Or is there something I can just put in .vimrc? set termguicolors colorscheme ...
Aaron Parisi's user avatar
5 votes
1 answer
538 views

Vim9: How will '#' characters be handled in colors/* files now?

Vim9 now interprets '#' as the start of comment, but I use this character in color setting files. For instance: hi Todo guifg=#d14a14 guibg=#1248d1 ctermfg=red ctermbg=darkblue
al-'s user avatar
  • 53
1 vote
1 answer
111 views

Search order for color scheme

I tried to install the better official color schemes (https://github.com/vim/colorschemes) the exact way it is described there: Putting them under .vim/pack/something/start. The thing is that those ...
Matthias's user avatar
0 votes
0 answers
97 views

Can I stylize the current closed-fold line? If yes, how?

I like to have the current line highlighted (in terminal vim), but not as a punch in my eye, so what I have is this in my ~/.vimrc: au ColorScheme * \ hi CursorLine ctermbg=NONE ctermfg=NONE cterm=...
Enlico's user avatar
  • 2,214
1 vote
2 answers
518 views

Why is my colorscheme showing weird colors?

I recently (few days...) updated Vim on arch (via the package manager), and I've noticed something about colorschemes has changed. However, I don't understand why I should see color changing if I don'...
Enlico's user avatar
  • 2,214
1 vote
1 answer
212 views

What factors control the color scheme in a terminal?

I am trying to use VIM through new "Windows Terminal" app on a Windows 10 operating system. The VIM app is installed inside a debian WSL app. I can't wrap my head around how the entire color ...
Asad Munir's user avatar
0 votes
1 answer
477 views

Disable/change colors in vim terminal (but not in open file)

I'm on Mac Neovim. When I type :term, I am greeted by this: This poses some issues; For example when I run a command, it also colors the output; I don't want this to happen. Is there some way to ...
user avatar

1
2 3 4 5
7