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
43
votes
5answers
34k 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. ...
35
votes
2answers
45k 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 (...
22
votes
2answers
10k 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 ...
19
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 ...
17
votes
1answer
6k views

How do I change the colour of the statusline of the currently focused window?

How do I change the colour of the statusline of the currently focused window? I've seen colorschemes modify this. Is this some sort of highlight group? Or something else?
16
votes
8answers
18k views

Trouble Using Color Scheme in NeoVim

I don't have a full understanding of how my color scheme is interacting with the term setting in vim and this is impeding my ability to get it to display correctly in neovim. In my .vimrc file, ...
16
votes
4answers
9k views

How can I create my own colorscheme?

What files do I need to create? What should be inside these files? Is there a default colorscheme file somewhere that I can use and change color values accordingly?
15
votes
5answers
14k 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 ...
13
votes
9answers
24k views

Colorscheme's background not correct in terminal

I imported the solarized colorscheme and palette. My terminal has the correct colors and background, gvim has the correct colors and background, but vim has an incorrectly colored background. The text ...
11
votes
2answers
783 views

When making a colorscheme, what is the label for the ~ area of the screen below EOF?

I have found some color schemes that I like, but some of them have the feature that the lines below the content of the file on the display - the ~ area - have a different background color as shown.. I ...
10
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 (...
9
votes
2answers
366 views

Is it possible to assign a sign to “Todo” group?

Is it possible to add a sign to be displayed in the signs column whenever the line has a ToDo group (ToDo,FIXME...). Tweaking my colorscheme I changed the highlight of the Todo group, but would like ...
8
votes
4answers
1k views

SpecialKey foreground color w/ cursorline set

In this Q&A, it's observed that there is a highlight group for CursorLineNr, which applies to the line number for the cursor line when set cursorline is on. I notice that using cursorline also ...
7
votes
2answers
8k 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 ...
7
votes
1answer
462 views

Is it possible for Vim to output ANSI colors from the terminal, without a colorscheme?

Many terminal emulators allow you to define colors: Rather than trying to approximate (and duplicate!) the same theme in a Vim colorscheme, is there a way to tell terminal Vim to output ANSI escape ...
7
votes
1answer
324 views

Does a Vim syntax highlighting file already exist for this log file format, or how can I easily make one?

I wonder if there's already a Vim syntax highlighting in existence that I could use out-of-the-box or modify if it's close to what I want. The log file format I want to highlight stuff in looks like ...
6
votes
3answers
3k views

Why does .vimrc not set colorscheme properly?

So I have downloaded proton.vim (a colorscheme) and placed it inside my .vim/colors folder. In .vimrc, right at the bottom I have colorscheme proton but when Vim loads, it is set to the default ...
5
votes
2answers
2k views

How do I conditionally set :colorscheme?

My .vimrc chooses my preferred color scheme (solarized) which is installed via plugin management system. Yet on some systems which don't have that plugin the :colorscheme solarized command runs but ...
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 ...
5
votes
2answers
413 views

Different gutter colours for each code function

VIM knows to identify the start and end of code functions with the [[ and ]} commands. How might I use this to colour the gutters or line number backgrounds differently for each function? The issue ...
5
votes
2answers
2k views

CursorLine colors

I configured my CursorLine to be lightyellow. I have a couple of issues here: First, lightyellow is marked as an error when it is a valid color. How can I avoid this? Second, when the cursor line is ...
5
votes
2answers
1k views

Vim lost custom highlight settings after recovering from sessions

I defined some highlights in the vimrc file and it works well in gvim. However after I mksession and sourced it back, I found that some (maybe all) of the custom highlights were lost and vim used the ...
5
votes
1answer
2k views

Overwrite colorscheme syntax highlighting

/* This is coming directly from Molokai's issue #36. */ The problem Molokai is a very nice theme for Vim but it has a terrible vimdiff highlighting (see left split, last 5 lines). + are not green ...
5
votes
1answer
44 views

How do I remove the special highlighting on `rnu` numbers?

I spent a lot of time getting vim to look just the way I want, but nornu and rnu number modes look different. Is there any way to disable the special highlighting when in rnu mode? nornu rnu
5
votes
1answer
226 views

Disable bold character under cursor

This might be a newbie question but I can't seem to find an answer anywhere. I've created a custom colorscheme, but I don't know how to stop the character behind the cursor from becoming bold. This ...
4
votes
1answer
1k 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 ...
4
votes
2answers
2k views

Why does the same color scheme look better in gvim than Cygwin?

I installed Cygwin/x on my PC, and I've set the terminal to xterm-256. But when I start vim from cygwin terminal, the look and feel of the same color scheme is different on cygwin and gvim. gvim ...
4
votes
2answers
586 views

How do PuTTY/KiTTY ANSI colors affect Vim colorschemes?

I'm having a hard time understanding how the ANSI colors affect the named colors in Vim. My KiTTY terminal has "regular" and "bold" versions for the main 8 colors, plus foreground/background colors. ...
4
votes
2answers
2k views

non-default colorschemes can't be loaded; setting them manually after startup works

Currently, I use vim-plug for managing plugins and vim-colorschemes for my colorschemes - which doesn't work. Approach 1: in my init.vim: Plug 'flazz/vim-colorschemes' [...] syntax on colorscheme ...
4
votes
2answers
3k views

I can't get 256 colours to work with Vim in iTerm2 on MacOS X

I am having a rough time getting the colors right with my vim setup and the color scheme I want to use. Using: OSX 10.10.2 Vim 7.4 iTerm2 (Set to report terminal type as "xterm-256color") gruvbox ...
4
votes
1answer
83 views

Vim highlighting random indentations

As seen from the image, Vim decides to highlight those indentations for no reason. I've tried :noh and :set nolist (:set list seems to make it go away, but I don't want indentation marks) from a ...
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 ...
4
votes
1answer
784 views

How to change color of tabs in the tab-bar in gvim?

Here is what my tab-bar in GVim looks like: I'm having a hard time to identify which of the tabs is the active one. How can I configure the color of the tab-bar, for example I'd like to use a ...
4
votes
1answer
512 views

How to change the color of the modes names (--INSERT--, --REPLACE--, --VISUAL--, etc)

What is the color scheme property for the mode indicator (that says --INSERT--, --REPLACE--, --VISUAL--, etc) that appears at the bottom of the screen? I would like to change this because the color ...
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/...
3
votes
4answers
220 views

Hightlight Gutter of Function Being Edited

Is it possible to change the back-gound color of the gutter for the function that I am working on? I keep loosing my place, but it would be awesome to highlight a section like below.
3
votes
3answers
778 views

Change color of Vim error message when .swp file exists

This is a really minor thing but it keeps bugging me. Whenever I try to open foo.txt if a .foo.txt.swp file exists, the error message that shows up displays in a color that painfully clashes with my ...
3
votes
2answers
2k views

Neovim Gray Background

Problem Anytime I switch to a colorscheme the background turns this ugly gray that gives everything a washed out look. Why does this happen, and how can I prevent it? Example screenshot— More ...
3
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 ...
3
votes
2answers
2k views

Why does my colorscheme not look like it should?

For some reason when I change my colorscheme it doesn't seem to change all the syntax elements, or changes them to a completely different color than they should be. I know the problem isn't about the ...
3
votes
1answer
753 views

Vim zebra line coloring?

Is there a plugin or way for me to alternate the background color for each line in vim? E.g. Previously I'd found vim-zebra but this looks really ugly: I'd prefer the whole line to be colored, not ...
3
votes
1answer
424 views

Define color with customized name

How to define a specified RGB value as color with customized name in Vim script, much like the existing color Black, Gray, etc.
3
votes
1answer
1k 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 ...
3
votes
1answer
6k views

Make vim show all the colors

I have a problem with making vim show a colorscheme fully (like in gvim). I've read about how to enable 256 color mode in terminal and it vim, but somehow it just doesn't work. The state of now is: :...
3
votes
1answer
327 views

Underscores don't show up in some colorschemes

Sometimes, when I'm using the torte colorscheme and editing latex files, my latex expressions inside of $ signs show up in yellow. When this happens, my underscores disappear, as the following figure ...
3
votes
1answer
44 views

Different color for comments with one # and two ## in python

I would like to know if there is some way to color different comments in python inside VIM. Today I use wombat256mod and I would like to color in red comments that start with double ## and color with ...
3
votes
1answer
2k views

Vim black text on black background in command line in Windows 10 while editing git commit message

I am using git 2.7.0.windows.1 in Windows 10, with core.editor set to vim. Vim was downloaded from vim.org latest version binary: VIM - Vi IMproved 7.4.1023 (2013 Aug 10, compiled Jan 2 2016 14:24:...
3
votes
1answer
661 views

How to setup in `~/.vimrc` a mapping for `colorscheme` to toggle `solarized` between `dark` and `light`?

Both background and colorscheme in ~/.vimrc are badly misbehaving! I have setup solarized to work on vim and it can manually toggle between background light/dark. My general settings in ~/.vimrc are: ...
3
votes
0answers
371 views

Remove transparency in VIM when terminal is transparent? [closed]

I want to keep the terminal background somewhat transparent, but when I open vim vim filename.txt it opens it in terminal (as I want) but the background of the vim is somewhat transparent too. Can I ...