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
42
votes
3answers
61k views

What does :set background=dark do?

I didn't put color xxx in my .vimrc. So I see this when I first open my .vimrc. :color gives me default here. Then I type :color darcula. And it changes to this. :color gives me darcula here (...
4
votes
1answer
62 views

How to customize colorschemes without editing their source files?

Similarly to plug-ins, color schemes are commonly distributed as clone-able Git repositories, which make it less desirable to directly edit their source files (as sometimes suggested) when wanting to ...
11
votes
1answer
2k views

Why does the order of :set bg=dark and :set bg=light matter?

While trying to match up my terminal's colour palette and GVim's I noticed this: When I open GVim and Vim, I see: (That's the same file, my vimrc.) If I do :set t_Co=256, nothing happens in GVim (...
2
votes
1answer
156 views

I'm using a colorscheme installed with vim-plug, how can I change the color of the line numbers? [duplicate]

I'm using this colorscheme, how can I change the color of the line numbers? I think that the colorscheme will overwrite anything I'll put in .vmrc.
51
votes
6answers
43k views

How to add indentation guides/lines

In Sublime Text 2, you get vertical guides where your indentation is, like this: but in vim I obviously don't: Is there a way to show lines like that in vim? By the way, my indentation is 2 spaces. ...
29
votes
3answers
15k views

How do I customize vimdiff colors?

I am trying to use vimdiff as my git merge tool, but the colors used are making it unbearable (at least on Windows/Mingw): the background color and the foreground color is the same for some of the ...
20
votes
2answers
2k views

Is it possible to use two different color backgrounds in a single vim buffer?

I am looking for a possible solution for applying two different background colors inside a single vim buffer depending on context like in this sublime text example. One use case of that is to color ...
17
votes
5answers
19k views

List valid color schemes?

I just found out about the :colorscheme command. Is there a way that I can get a list of valid color schemes from Vim? I'd like to be able to do this from within Vim, not from a list somewhere on the ...
6
votes
1answer
4k views

24-bit / 256 colorscheme in Windows console

I'm using 64-bit Vim 8.1.0428 on Windows 10 release 1803. The Windows 10 console now has 24-bit colours, and Vim 8 has been patched to handle 24-bit colours in the Windows console (i.e. using vim.exe ...
4
votes
1answer
2k views

Visual Differences between vim on virtualbox Ubuntu guest (through putty) OR gVim on Windows host

Ok, it's a curiosity more than a real question, I apologize in advance for long post: Usually I code with vim on a ubuntu headless, as a virtualbox guest on my stupid windows 7 host; I access linux ...
3
votes
1answer
2k views

Using a custom color scheme and setting it as default

I'm just starting with VIM and I'm trying to install this custom color scheme: https://github.com/devnul1/heman I created a .vim directory on my home directory and inside .vim I created a directory ...
2
votes
1answer
481 views

Problem With ColorScheme

I am a vim user looking for help for a problem with my vim colorscheme. When I start everything looks fine and is usable until I start scrolling down. Once I scroll the background takes on the color ...
1
vote
1answer
1k views

Vim ignore terminal color schemes when setting colors

I don't want vim to be affected by my terminal's color scheme. Is there a way to do this? In particular, I want my LineNr column to be colored black. I have seen it is possible because airline ...
20
votes
6answers
4k views

Set cursor colour different when on a highlighted word

With the current colourscheme I have been using, it is hard to find where the cursor is positioned when navigating through search results. The highlighting colour and the cursor colour are blending in ...
7
votes
1answer
2k views

Highlight whole todo comment line

I'm still learning Vim and making small customizing on it. I'm struggling a bit to create a custom style/syntax highlight which would highlight the whole todo line. So in the picture instead of having ...
7
votes
2answers
10k views

How to completely turn off colorscheme?

Original post I've got a colorscheme configured in my .vimrc but sometimes I'd like to turn it off completely which means that I would like Vim to use the default background and foreground colors of ...
4
votes
1answer
2k views

Tmux messing with Vim highlighting [duplicate]

When I load up vim inside tmux there is a background color behind all text as so: If I load it up not in tmux I get the following: I want it to be like image 2, I can not understand why tmux is ...
2
votes
0answers
52 views

Syntax highlighting shows a yellow bar on Windows 10

Good afternoon, I just started using the Ubuntu shell from Windows 10, and I copied my Mac .vimrc file. Everything seemed normal until these yellow bars started showing up at the end of some lines. ...
2
votes
2answers
2k views

How to set a colorscheme that still shows spelling errors?

How to set a colorscheme that still shows spelling errors? I am looking for two combined effects that I can acquire separately but not yet together. Set Colorscheme alone: OK. If I want highlights ...
5
votes
3answers
5k views

Why does my colorscheme look different when I run vim with sudo?

I installed colorscheme "jellybeans" for vim. Why does the colors look differently when i run vim with and without sudo? Example on the screen below - the left one is without sudo, the right is with ...
4
votes
1answer
1k views

NeoVim: default colors don't match vim's

I'm running NeoVim "straight out of the box"; after running the following commands: mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config} ln -s ~/.vim $XDG_CONFIG_HOME/nvim ln -s ~/.vimrc $XDG_CONFIG_HOME/nvim/...
2
votes
1answer
216 views

What does Special Comment refer to in reference to a colorscheme?

I've recently delved into taking an existing colorscheme and customizing it to my liking. While doing this however, I found there was a highlight option for special comments and I'm not sure exactly ...
2
votes
2answers
94 views

How to change background color for markdowns fenced code blocks?

I can do this for markdown's tab-based code blocks with mkdCode color group. So my question is if it's possible to do the same for fenced once? I use plasticboy/vim-markdown plugin. Here's a minimal ...
2
votes
1answer
1k views

How can Vim be configured to restore normal terminal color on exit?

I have set Vim's default colorscheme to Monokai, and when I exit Vim the Monokai colors are still on the screen until I clear it. How can Vim be set to run clear automatically on exit, or change the ...
1
vote
1answer
168 views

Light colorscheme issue causing black background when scrolling down using J

colorscheme leya set background=light whole .vimrc https://gist.github.com/francium/e29aa1600abd158fe08b34218e1f3bd6 Only happens when you scroll down using j Tried it with another light theme, ...
1
vote
1answer
1k views

solarized in xterm256(terminal.app) has wrong background

I using solarized in both terminal.app and vim, but in vim the background, airline and other things are not the color scheme's appearance which is different with MacVim. So how to deal with it? I ...
0
votes
1answer
886 views

Changing the vim color scheme only highlights lines of text?

I'm a big noob to vim here. I was trying to change the colorscheme of vim by editing the .vimrc file, but as I was playing around with different color schemes (ayu and gruvbox, for example) I noticed ...