Questions tagged [color]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

How to color VIM “:!{cmd}” output

I'm trying to get the same setup as the guy in this video, so that when :!pytest % gets called, the output is colored. I've tried with various vanilla colorschemes, with no luck... I'm using NVIM, ...
2
votes
1answer
29 views

How to set the background color for colored items in the statusline to the background color of the statusline?

I am experimenting with creating a statusline and have opted for coloring different parts of it. The problem is that while the item's foreground color is changed, the background is black and doensn't ...
0
votes
1answer
44 views

Shell syntax, how to patch bad highlight groups

The neovim syntax for shell scripts doesn't check if keywords like echo, done, exit etc.. are surrounded by blank spaces or if they're part of a bigger Word. This results in the following bad ...
0
votes
1answer
30 views

prevent changing background color on pressing tab and arrow keys

when I press the tab key or top arrow when I am in the first line, bottom arrow when I am in the last line, right arrow when I am at the end of the line and left arrow when I am at the start of the ...
0
votes
0answers
50 views

Set Background for Lines after EOF

I am trying to get transparency on DWM to work by setting the background color in vim to NONE. highlight Normal guibg=NONE ctermbg=NONE This works fine unless I have files that contain not enough ...
0
votes
0answers
154 views

If background is not transparent in ViM, I see the background color of the terminal, which is different

This problem might be a terminal problem, but maybe some of you managed to solve it. I've been using ViM with the default colorscheme, which has a transparent background, so I see the background color ...
1
vote
0answers
45 views

Vim ignores color 255, as if it doesn't support the 256 ones

Update: it works, if I set the main bg color (white) as ctermbg=231 (it was 015). So it seems that color values in Vim syntax highlight settings shouldn't be mixed: if one uses color codes from the 16 ...
2
votes
1answer
127 views

How do I change vim cursor color

I use vim version 8.0.707. My cursor blinks but make the character disappear half the time. I'd like it to behave as usual: display the negative color. How can I do that please? Thanks in advance :)
2
votes
0answers
47 views

Is there some way to retrieve/redisplay :echon output?

I want to create a multi-color enabled debug-print command. As far I know, the only way to print multi-color messages in Vim is: echohl Macro | echon "Hi" | echohl Statement | \ echon &...
4
votes
1answer
98 views

Are opening and closing double quotes expected to be of different color in a bash script?

I've just noticed, after years using Vim, that the two double quote characters opening and closing a string in a bash script have different colors, which I can verify by simply writing var="var&...
1
vote
1answer
55 views

Highlighting color strings with correspondent color

When tweaking color themes, one thing I really miss is a highlighting that would color the color strings with the corresponding color. Maybe this sounds confusing? An example: here is a fragment of a ...
1
vote
1answer
56 views

Color themes listed as available in Vim not changing upon :colo [themename] command

I am trying to install themes using V8+ Vim (8.2) on a Windows 10 OS. I first tried following the standard instructions listed on the Dracula theme site here. Unfortunately, the naming conventions for ...
3
votes
1answer
102 views

How to show list characters with red color?

I have set listchar in .vimrc as below: set list lcs=tab:→\ ,space:·,nbsp:␣,eol:¶ How can I display these characters →\ , · , ␣ , ¶ with red color? Here is my failed attempt: hi! set list lcs=tab:→\...
2
votes
1answer
95 views

How to change the command line status message color and font?

I would like to change the color of part of the command line, the stuff that's echo'd from vim scripts. I know it can be different since when your search hits the bottom it prints a message in red ...
0
votes
0answers
25 views

AnsiEsc plugin error

When executing vim, after installing AnsiEsc, I get the following error: Error detected while processing BufRead Auto commands for "*": E117: Unknown function: AnsiEsc#BufReadPost Do you know how to ...
3
votes
1answer
32 views

Can't see tag “<>” braces due to highlight color same as braces in Windows terminal

I'm new to Vim and am having an issue with highlight color of matching braces in Vim. if I type: <html> and my cursor is at the one of the <> greater/less-than brace then I can't see the ...
1
vote
1answer
47 views

How to set colors for vim warnings about existing swap files

Is it possible to set color for the warning message "Swap file XXX already exists! ..."? I couldn't figure out which highlight group it belongs to.
1
vote
0answers
339 views

Vim background colors render incorrectly

When I scroll inside vim white spaces seem to get highlighted. Also the background color is the one I use to signal the 80 column while it should be the same color as the terminal as it can be seen in ...
1
vote
1answer
116 views

Setting coloring in :term on urxvt

I use the URxvt terminal emulator, and echo $TERM returns rxvt-unicode-256color. In vim, if I run :echo $TERM, I get the same result. However, if I open a terminal window with :term and enter echo $...
2
votes
0answers
109 views

Using Nvim-Qt colors with regular Vim

I have been using nvim-qt and I like it. However I want to switch to regular nvim, but like other users I have had trouble with it. So then I thought maybe I will just use plain vim. The issue is ...
3
votes
1answer
502 views

ctermbg and ctermfg are backwards or incorrect for certain highlighting groups

I am currently attempting to create a custom colorscheme for vim by using ctermfg and ctermbg values, and checking what the colorscheme looks like with the highlight test file provided by Vim. What I ...
1
vote
0answers
135 views

gVim 8.2, display problem

I have a weird problem with VIM, both at work and at home (2 different computers): When I open a text in VIM, sometimes it is displaying it correctly, sometime not (I'd say 1 every 3 it works fine, ...
2
votes
1answer
112 views

Vim color black isn't black

I have the following text in my ~/.vimrc: syntax on colorscheme koehler highlight ErrorMsg ctermbg=Red ctermfg=Black however the error messages show like this: The error message is gray on red, not ...
0
votes
2answers
308 views

Is it possible to reverse an existing highlighting group?

Is it possible to automatically create a highlight which is the reverse of an existing highlight? Example highlight Search guifg=Black guibg=Yellow, becomes highlight CustomHighlight guifg=Yellow ...
1
vote
1answer
615 views

Vim is highlights everything after EOL in yellow upon scrolling

My vimrc: http://ge0rges.com/vimrc My environment is: Ubuntu 18.04 in WSL on Windows 10. VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 06 2019 17:31:41) Included patches: 1-1453 Modified by pkg-...
1
vote
1answer
550 views

How does g:terminal_ansi_colors affect the :terminal colors?

:term usually looks ugly in most colorschemes I've tried. At least on Windows, with light themes, these colors do not work and end up in an unreadable shade of yellow against my light background. I ...
0
votes
1answer
100 views

Gradient color background for visual selections

In this video from Bisqwit, the selected line is colored by a gradient according to column number. Image is below. He implemented the gradient in a custom terminal emulator. Is there any way to ...
2
votes
2answers
540 views

Getting an RGB color from highlight group

In putting together and addon for blender to integrate neovim. Where I'm at with it, github colo imported to blender text editor from nvim_gtk One component is grabbing the current colorscheme of a ...
2
votes
3answers
503 views

Apply terminal colors in gui?

I am on neovim with Oni. vim-netranger plugin uses terminal colors in this format to highlight things. It does work in terminal with neovim , but not in a gui app. I am looking for a way to replace ...
2
votes
1answer
220 views

Where can I find color settings used by Vim and NeoVim?

I've been using dotfiles created by other people to setup Vim. Recently I decided to create my own config and investigate what's NeoVim about. I'm using default OSX Terminal.app with zsh shell (I've ...
1
vote
2answers
476 views

Change background color of git conflict marker sections

If git is performing a 3-way merge and has a conflict it can't resolve, it marks up that area of the file like this: No unresolvable conflicts here <<<<<<< HEAD xyz ||||||| ...
0
votes
1answer
117 views

Highlighting screen positions, or `:set colorcolumn` only for the 2 bottom and top lines visible on the screen

The option colorcolumn is really useful. I would like a similar result to what it yields but only for the two lines that are at the top and the bottom of the screen (not the document, but the screen). ...
0
votes
2answers
3k 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 ...
2
votes
0answers
74 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 ...
3
votes
2answers
2k 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 ...
4
votes
0answers
127 views

Have colors when using :make

When I'm using :make, the output doesn't have any color. The text is only white. But when I'm using :!make for a C project or :Cargo run for a rust project ( I also use rust.vim ) , there are colors ...
1
vote
2answers
1k views

How to set CursorLine highlight color for the gruvbox colorscheme [duplicate]

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 ...
4
votes
0answers
385 views

Why are Vim 8 :term colours with gvim different from those in plain vim :term or bash?

Vim 8 :term colours in gvim happen to be different from those seen in plain vim :term or bash. How come? How does one obtain the same bash colours in gvim? EDIT: I have been reading a bit more about ...
7
votes
1answer
6k 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
1answer
732 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 ...
1
vote
1answer
43 views

How do I manually set the colorscheme for a single editing session?

Essentially, what if I want the markdown color scheme for a file not ending in .md? Sometimes I create files conforming to the markdown standard, but they don't have a .md extension. Ideally, this ...
1
vote
1answer
293 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 ...
1
vote
1answer
195 views

Change the colors provided in gui-colors

If I type :h gui-colors, a list of available color names pops up. Often times I just want to change the tone of a color. Assuming these are simple variables of some sort, can I redefine these somehow? ...
2
votes
0answers
61 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: ...
0
votes
1answer
301 views

Set text color for each column

I have a tab-delimited text file with fairly long lines. To improve readability, I would like to color text in each column individually. Is this possible in Vim? For example, the first column text ...
0
votes
1answer
2k 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
2answers
424 views

Plugin vim-signature: How to change mark column character color?

Currently mark character is bright red as in below screenshot. How to change it?
9
votes
1answer
2k views

What is the difference between red and cyan in spell check highlighting?

My Problem I have added the following to my .vimrc to enable spell checks: " Spell Checking set spelllang=en_us set spellfile=$HOME/en.utf-8.add set spell Giving the following highlight: Both "...
2
votes
1answer
631 views

Get back regular vim colors

I just installed Linux Mint 18.3 and to my surprise colors in vim changed! Vim in the terminal on the left has the color scheme I've always seen and got used to. Vim in the terminal on the right has ...
2
votes
0answers
93 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 ...