Questions tagged [colorscheme]
A colorscheme is a Vim script which sets the colors to be used for the highlight groups.
304
questions
1
vote
2
answers
119
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 ...
1
vote
1
answer
45
views
How can I quickly see/test/check all colorscheme's available in Vim?
I want to quickly see all colorscheme's available in Vim, without having to click many places or run a lot of manual commands. Is there an automated way to do that?
2
votes
2
answers
111
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 ...
0
votes
1
answer
36
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 ...
1
vote
0
answers
31
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/...
2
votes
2
answers
121
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....
1
vote
1
answer
34
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 ...
1
vote
1
answer
176
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/...
1
vote
0
answers
258
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, ...
0
votes
1
answer
66
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 ...
0
votes
0
answers
139
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....
0
votes
0
answers
35
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/...
1
vote
1
answer
50
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 ...
0
votes
1
answer
47
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
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 ...
0
votes
1
answer
45
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....
1
vote
1
answer
265
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 ...
0
votes
1
answer
112
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
...
0
votes
1
answer
149
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 ...
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 ...
0
votes
2
answers
237
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. ...
0
votes
1
answer
499
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 ...
2
votes
2
answers
712
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 ...
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 ...
-1
votes
1
answer
177
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
0
votes
2
answers
505
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 ...
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 ...
0
votes
2
answers
87
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 ...
1
vote
1
answer
25
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 ...
0
votes
1
answer
147
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 ...
0
votes
1
answer
93
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 ...
0
votes
1
answer
916
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-...
0
votes
0
answers
162
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 ...
1
vote
1
answer
47
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 ...
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 ...
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, ...
0
votes
1
answer
162
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, ...
0
votes
2
answers
203
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, ...
1
vote
2
answers
734
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 ...
1
vote
2
answers
618
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 ...
0
votes
0
answers
174
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 ...
2
votes
1
answer
373
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"...
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 ...
5
votes
1
answer
536
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
1
vote
1
answer
102
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 ...
0
votes
0
answers
89
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=...
1
vote
2
answers
506
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'...
1
vote
1
answer
207
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 ...
0
votes
1
answer
456
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 ...
0
votes
0
answers
76
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 ...