Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [colorscheme]

A colorscheme is a Vim script which sets the colors to be used for the highlight groups.

0
votes
1answer
21 views

How to edit the highlighting of the function names in c++ syntax

I want to change the highlighting of the function names inside a c++ file, here is an example As you can see in the previous picture functions names have their own color, parser(), parse(), ...
0
votes
0answers
44 views

How to make vim theme looks exactly as on screenshot

I've tried dozens of different themes but always get wrong coloring. For example: This is how vim-afterglow should look with LaTeX code. This is mine screenshot: This is example for Python. And ...
1
vote
1answer
32 views

Terminal transparency automatically achieved on certain color schemes, but not others

I've been trying different colour schemes while manually setting a transparent background using hi Normal guibg=NONE ctermbg=NONE so my .vimrc file looks something like this set t_Co=256 colo ...
0
votes
1answer
49 views

what does “\033]110\007\033]111\007” mean

I found this snippet online which is apparently a way to make vim a little faster if your terminal background is the same as what vim's is meant to be (right?) " General colors if has('gui_running') |...
0
votes
1answer
26 views

Color name or number not recognized: ctermbg

I'm receiving the following error: Color name or number not recognized: ctermbg=g:extra_whitespace_color guibg=g:extra_whitespace_color Pointing to these lines: let g:extra_whitespace_color = '...
1
vote
1answer
173 views

How to set if else for vim's “set background = ” for light and dark colorschemes?

For themes like One or PaperColor, there are dark and light versions. For dark or light theme, I usually add my own customizations like bracket color, comment color... etc. I tried to combine them ...
1
vote
1answer
21 views

Retrieve color scheme colors to use for other plugin setting

I am trying to use a colorized parenthesis plugin. However, the colors don't match my current color scheme. The help page mentions ways to change the colors, but I don't know which magical words I ...
0
votes
1answer
34 views

How to change default's colorscheme colours

I use default colorscheme for Vim since I just love to have consistency throughout my terminal. One thing I don't love though is the colour of number lines, bright yellow doesn't suit it. Is there any ...
3
votes
1answer
56 views

vim html version of text document black on white

I'm trying to figure out a good workflow for printing source code and studying it. So far, the TOhtml function seems really useful for this purpose. I can create an html file with ease, open it in a ...
0
votes
1answer
38 views

How to change color of the splits counter in a 'tabline'

I can have multiple splits in a new tab. To change background and foreground of active and inactive tabpages, I can do the following: hi TabLineSel term=bold ctermfg=White ctermbg=DarkBlue hi TabLine ...
2
votes
0answers
132 views

Remove transparency in VIM when terminal is transparent?

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 ...
0
votes
2answers
33 views

Colorscheme not display correctly for vim on mac terminal

I start up vim from mac terminal like so: vim filename But my colorschemes do not load properly (I tried loading desert.vim, desert256.vim and solarized.vim). desert256.vim has a black background ...
0
votes
0answers
15 views

Ugly black thing when using :ls with colorscheme [duplicate]

I installed gruvbox color-scheme. Then I did :ls and saw this: After ".vimrc" there's some black stuff. It is kind of ugly and makes it harder to read. Is there any way to fix this?
2
votes
0answers
36 views

Using an iTerm color scheme inside a Vim :terminal window

My normal terminal color scheme is set via a color preset in iTerm. When I open a terminal window in Vim (:terminal) that color scheme doesn't get applied, presumably because Vim has no knowledge of ...
1
vote
1answer
81 views

Detecting whether colorscheme is available [duplicate]

How can I detect whether a color scheme installed via a vim-plug plug-in is available? For context, I'm trying to automate my Vim setup on a new machine, pulling the vimrc from a git repository. The ...
0
votes
1answer
40 views

vim looks different when i launch it via the terminal

I'm using NVIM 0.2.2. When I launch it from the terminal, the color scheme of the terminal affects it's look. And when I launch it from the search menu, it works just fine What makes it behaves that ...
1
vote
2answers
137 views

How to use different colorscheme and syntax highlighting in vim?

Suppose I want to use this colorscheme: https://github.com/NLKNguyen/papercolor-theme I copied the PaperColor.vim file into .vim/colors and made my .vimrc: syntax on colorscheme PaperColor ...
0
votes
1answer
18 views

Edit colorscheme to tell me which search result my cursor is currently on

When I search for a word in my files, many of them come up, and it's tough to tell which one my cursor is currently over. See image: Is there a way to edit the background color for the search I'm ...
1
vote
1answer
104 views

Incremental Highlighting Colorscheme Override

tl;dr: How do I override the colorscheme's cursor color in a highlight block How do I find a comprehensive list of colorscheme variables and how do I set them in general (to override a colorscheme's ...
0
votes
1answer
65 views

Background color not transparent under current line number

In the following image, you can see that 79 has a darker background than other numbers... I tried to see where to change the background color for that but couldn't... Could anyone help?
0
votes
2answers
229 views

Change color of signs in SignColumn/Gutter

I have set my sign column background using hi SignColumn ctermbg=236 in my colorscheme file. However, it seems that the background colors for where there are signs has not been changed, and is the ...
0
votes
1answer
128 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 ...
0
votes
1answer
136 views

Fixing pug syntax highlighting

Update I've managed to get the top part of the file fixed with syn region pugJavascriptLine start=/^\s*-/ end=/$/ contains=@htmlJavascript from this programmer: https://github.com/digitaltoad/vim-pug/...
0
votes
1answer
60 views

Solve cursor invisible on some highlights

As you can see in my case, I can barely see my cursor when it is on an error highlighted by You Complete Me as an error. How do I make my cursor more visible? My GTK+ theme is Numix, I use Gnome and ...
0
votes
1answer
344 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 ...
1
vote
2answers
262 views

How to set CursorLine highlight color for the gruvbox colorscheme

When I use the colorscheme gruvbox (installed with vim-plug), it overrides my configuration of the Cursorline highlight, eg set cursorline hi CursorLine cterm=NONE ctermbg=black with the same color ...
0
votes
1answer
872 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 ...
1
vote
0answers
270 views

NeoVim: colorscheme won't work in init.vim; requires command to be typed

I'm new to NeoVim and just getting started. My init.vim file under NeoVim\share\nvim\runtime\plugin\init.vim successfully sets everything except for the colorscheme and background. As seen in the ...
1
vote
1answer
100 views

Does `hi link XXX Normal` provide any benefits?

Does hi link XXX Normal provide any benefits? For example the syntax file included by default syntax/vim.vim includes the line: hi def link vimUserFunc Normal This often conflicts with CursorLine ...
1
vote
0answers
43 views

Overwrite Vim theme color scheme

How can I change the color scheme of an installed Theme? I currently have gruvbox installed and I would like to change the color of node.js keyword 'import' from aqua to orange. To no avail, I have ...
3
votes
1answer
38 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 ...
1
vote
2answers
66 views

Installed and set colorscheme but method puts and print not working on ruby

Yesterday, I Installed vim and some colorscheme like gruvbox, monokai, molokai. I set it in ~/.vimrc and turned on the syntax highlight, everything work well on HTML but in ruby files (.rb) it still ...
0
votes
0answers
50 views

how to write a self-contained color scheme

I'm making a simple colorscheme based on one I found on the vim website. https://www.vim.org/scripts/script.php?script_id=854 I'd like it to be declarative in the sense that the colorscheme is ...
1
vote
0answers
22 views

Coloring Piece of Tabbar

I am using neovim with the gruvbox colorscheme. On its github page, you can see the buffers word on the top right is colored in orange: On my installation, it grey/brown: How can I find out what ...
1
vote
1answer
797 views

How do I enable the gruvbox airline after installing gruvbox with Vundle?

If I understood it correctly gruvbox has it's own airline and you don't need vim-airline installed. I followed the easy install with Vundle but for some reason the airline just doesn't load. I'm using ...
0
votes
1answer
275 views

How to change Operator highlight color in Vim?

I just switched to iTerm2 on macOS and found some of its options go to Vim as well. That's the case for fonts, I was able to select a Vim font that I like from iTerm options. It seems iTerm color ...
0
votes
1answer
443 views

How can I enable the 256 colors on Vim?

I run Neovim on tmux on iTerm2, but now I'm struggling to change the color of my Python code. I use python-mode library to change the syntax of the Python code. However, many colors I try to set got ...
1
vote
1answer
85 views

How to get 50 char long warning color highlight in vim gitcommit message without fugitive

I'm using vim-fugitive. However, I'm using a black and white colorscheme. So, I don't see any warning for the 50 char long subject line of git commit message. I want to know how I can add a highlight ...
2
votes
0answers
40 views

Highlight arbitrary rectangular regions

Is it possible to highlight specific and arbitrary rectangles in a buffer? I want to implement a code scope highlight that groups code into a hierarchy of boxes. here is my mockup that I made: ...
3
votes
2answers
830 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 ...
0
votes
3answers
467 views

Vim Terminal - Solarized Colorscheme [Gnome]

I've tried syntax on let g:solarized_termcolors=256 set t_Co=256 set background=dark colorscheme solarized but it doesn't look like GVim, how can I achieve that? Right now
2
votes
1answer
201 views

How to add a new colorscheme syntax keyword

I'm trying to create a new custom colorscheme and syntax highlighting. I have copied some examples into ~/.vim/colors/ and ~/.vim/syntax with new names inside for the scheme. All the basics work ...
2
votes
1answer
1k 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
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 ...
0
votes
1answer
245 views

Strange Highlighting during Git Commit

What can I do to have proper highlighting on a .git file? I chose Vim as my default editor when I commit files, the color scheme(Gruvbox) is applied, but I get strange colors as I start typing. I ...
0
votes
1answer
945 views

why is the material theme looking all weird on my vim

so this is a case where the toy doesn't look like what's advertised on the box. I tried to install the material-theme on my vim, which should be a standard exercise. However this is what it looks like ...
1
vote
1answer
249 views

How to edit all vim highlight groups?

I am going through the unfortunate process of making keybinds to change colorschemes, but different plugins have their own highlight groups which is making this difficult. Is there a way to set the ...
2
votes
0answers
68 views

Color questions for macOS

I just got a mac and have been trying to setup Vim 8 on the built-in terminal. I am mostly having some difficulties with colors. 1) After set number, how do I change the line number colors? I tried ...
1
vote
1answer
1k views

Vim in terminal is black-&-white but vim launched from dash shows colors

I am using Vim 7 on Ubuntu 16.04 (gnome) and the terminal emulator I am using is terminator. I really like the aristocrat/brogrammer colorscheme for Python and so I copy-pasted it in ~/.vim/colors/...
1
vote
0answers
192 views

How to extend the background color to the whole screen in a shell command's output?

I used to have a similar problem with the main screen (IIRC), like here: and I solved it by setting set set t_ut=, as was suggested in this question's accepted answer. But now I spotted another ...