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
1 vote
1 answer
28 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
  • 11
1 vote
1 answer
29 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
0 votes
0 answers
37 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
40 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
48 views

What options do I have to give time-only (i.e dependent on a call to a DB vai 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,172
0 votes
0 answers
22 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
40 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
34 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
26 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
38 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
148 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
61 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
119 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
  • 649
0 votes
0 answers
43 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
160 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
342 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
525 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
2k 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
124 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
313 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
  • 377
0 votes
0 answers
78 views

Why do Neovim builtin colorschemes do this awful fake cursor jump?

I'm using Neovim 0.9 with LSP configured via lsp-zero, as vanilla as I can make it. On every built-in Neovim colorscheme I've tried, the cursor becomes evil when it hits a parentheses/bracket ...
Sasgorilla's user avatar
0 votes
1 answer
73 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
0 answers
22 views

A colorscheme for a light background, that leaves my background "as is"

I'd like to know if Vim has an installed colorscheme, intended for for a light background, that leaves my background "as is".
gboffi's user avatar
  • 101
0 votes
2 answers
69 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
19 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
124 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,322
0 votes
1 answer
68 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,322
0 votes
1 answer
726 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
145 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
41 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 ...
Jonathan Jeffrey's user avatar
0 votes
2 answers
2k 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
2k 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, ...
Mathias Egekvist's user avatar
0 votes
1 answer
122 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
147 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
564 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
369 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
140 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
299 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
28 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
534 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
91 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
68 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,172
1 vote
2 answers
434 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,172
1 vote
1 answer
182 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
415 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
0 votes
0 answers
70 views

Syntax coloring only works inside a particular directory

I have no idea what I did but syntax coloring only works when I open files with vim started inside a particular top level path (e.g. /Users/name/Source/git-repository/). If I open the same files when ...
Looft's user avatar
  • 113
1 vote
1 answer
2k views

Gitsigns color customization

I am customizing the color scheme of the gitsigns column on the left. I managed to change all different symbols using the following: hi DiffAdd hi DiffChange hi DiffDelete hi DiffText I cannot figure ...
Jérôme Tremblay's user avatar
0 votes
1 answer
204 views

Why I can't apply colorscheme for GUI vim in Windows?

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 2 2021 18:02:30) MS-Windows 32-bit console version Included patches: 1-2824 Compiled by mool@tororo Huge version without GUI. Features included (+) ...
Pham Hung's user avatar
  • 113
0 votes
0 answers
63 views

Vim color is not correct when opened from another script

I have a custom script written to edit my config files using dmenu. This is the script. #!/bin/sh OPTIONS="Vim $HOME/.vim/vimrc" OPTIONS="$OPTIONS\ni3 $XDG_CONFIG_HOME/i3/config" ...
Merajul Arefin Pial's user avatar
0 votes
0 answers
95 views

Unable to set some colorschemes in NeoVim

I have added few colorschemes to my colors folder for NeoVim and they also show up when I press Tab. I can see all the exact themes that are in the colors folder. But, I am only able to use a few ...
Dhruv Anand's user avatar

1
2 3 4 5 6