Skip to main content

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
27 views

Save colorscheme in session file

Would it possible to save a specific colorscheme in a session file, such that if colorscheme is changed and session file saved, that colorscheme will be loaded next time session file is loaded? I have ...
Tom's user avatar
  • 117
1 vote
2 answers
31 views

Change background color for cursorline and cursorcolumn

In my vimrc, I have the above configuration. However, the background for lines/columns not currently highlighted is faaar too light, it's extremely jarring and makes it hard for me to focus sometimes. ...
Sara Mae's user avatar
1 vote
1 answer
29 views

Disbable color scheme in neovim [duplicate]

I've just upgraded my fedora installation and I suppose neovim was also upgraded. Anyway, before the upgrade I had the same colors in neovim as in my terminal: green font on a black background. After ...
user1785730's user avatar
1 vote
2 answers
71 views

How do I set CurSearch from my vimrc?

patch-8.2.4724 added a new highlight group for the search match under the cursor, but it looks identical to the Search highlight group by default. I know I need to set it to a colour for it to make a ...
idbrii's user avatar
  • 743
1 vote
2 answers
92 views

Should a colorscheme that queries `background` set `background&`?

I recently converted the :highlight commands in my vimrc to a custom colorscheme (named after myself) that selects between two different sets of highlights based on the value of the background option. ...
jwodder's user avatar
  • 135
2 votes
1 answer
199 views

Why is my terminal background color changing now when I start neovim 0.10?

My neovim is run under Kitty with the Borland color scheme. When I start neovim my background changes. You can see the before picture here, And the after picture here, I've tried deleting every ...
Evan Carroll's user avatar
  • 1,483
1 vote
1 answer
53 views

How do I fix un-linked color groups?

I recently had to re-install my OS: after updating everything, I noticed some colorscheme changes in Neovim. The colorscheme didn't change, but the way some groups are colored did. I was searching for ...
s0la's user avatar
  • 11
0 votes
1 answer
44 views

How do I cleanly set highlight colors based on the number of terminal colors?

My standard terminals have 256 colours, but I regularly have to use 8-colour terminals as well. For the terminals with more than 8 colours, I prefer highlight Comment ctermfg=DarkGrey, but on an 8-...
cjs's user avatar
  • 387
0 votes
1 answer
65 views

Vim not setting t_Co after iTerm2 update

Follow up to this question - I've narrowed the issue down to the fact that set t_Co=16 in ~/.vimrc is not being applied. SO post on restricting vim to 16 colors. If I open vim and execute :echo &...
Aaron Parisi's user avatar
0 votes
1 answer
101 views

Neovim displays with different colors, compared to Vim. Why? [duplicate]

I've migrated from Vim to Neovim, including my old .vimrc, and all packages on ~/.vim. This seems to work mostly fine, but, for some reason, colors and syntax are different: I've tried the set ...
MaiaVictor's user avatar
0 votes
2 answers
71 views

Revert Cursor Line Higlighting on Leaving Insert Mode

Apologies in advance if this is a RTFM case, but I have checked pretty thoroughly and I am still stumped. I am running Vim with the afterglow colorscheme on a vanilla Arch/Xmonad laptop. I cannot seem ...
Matematleta's user avatar
2 votes
1 answer
953 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
  • 724
1 vote
2 answers
129 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
86 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
  • 279
2 votes
2 answers
159 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
  • 724
0 votes
1 answer
86 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
62 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
214 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
64 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
  • 43
1 vote
1 answer
393 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
491 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
77 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
169 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,256
1 vote
1 answer
58 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
67 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
1 answer
52 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
422 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
166 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
217 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
  • 791
0 votes
0 answers
54 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
325 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
684 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
951 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
223 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
James W.'s user avatar
  • 121
0 votes
2 answers
909 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
  • 475
0 votes
1 answer
83 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
118 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
30 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
168 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,570
0 votes
1 answer
123 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,570
0 votes
1 answer
1k 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
186 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
55 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
4k 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
4k 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
201 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
274 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
938 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
1k 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

1
2 3 4 5
7