VS Code Vim - the statusbar color for ex mode? - vscodevim

I have been able to change the color of all the different modes with this:
"vim.statusBarColors.INSERTMODEHERE": "#b55d02",
However, when I press : this color changes and clashes with my theme (I cannot read the text).
What do I need to do to edit that color on : mode?

Related

vim colorschemes not displaying properly

I'm running vim in the default Mac terminal and I'm trying to change the color scheme to one of the included color schemes, but none of them seem to be displaying properly.
For example, if I type :colorscheme blue, the colors change but there is a white border around the background.
Additionally, if I type :colorscheme desert, which is the color scheme I want to use, the syntax highlighting changes, but the background color does not.
Note that the desert color scheme is ostensibly supposed to look like this:
Why are these color schemes not displaying properly, and is there a way to fix them? Thanks!
vim's set background={light|dark} is not designed to change your background color, it is designed to work with your existing background color and give you colors that show up on that background.
Some colorschemes have multiple options to try and reproduce what the designers wanted in a variety of settings. For example, the colorscheme I am using has a base section with all the color settings followed by a 256 color specific section:
....
hi LineNr guifg=#465457 guibg=#232526
if &t_Co > 255
hi Normal ctermfg=252 " ctermbg=232
hi CursorLine ctermbg=234 cterm=none
...
which sets all the colors based on having a 256 color terminal, so that way people with 256 color terminals can still get close to what the colorscheme author intended, since a 256 color terminal cannot draw RRGGBB colors.
Likewise, colorschemes can respect background and change the colors they are using to be visible on that background color (so dark terminals don't have comments as dark blue, for example).
Lastly, vim only attempts to draw the background where it can draw characters, i.e., only the printable area of the screen. If your terminal width is, for instance, between 64 and 65 COLUMNS wide, then vim can only draw 64 characters, and there will be some space around the edges where vim doesn't try to draw, leaving the terminal's default background.
On Mac's Terminal.app, the easiest way to change your background color is to go to Preferences -> Profiles and either choose a default theme or edit the Background "Colors & Effects" section to be what you want.

Vim color scheme overriding the background settings in Gnome Terminal

I have set my gnome-terminal's background to dark-blue, with a bit of transparency so I can see the underlying webpages or other documents when I code.
I've been using the smyck color scheme, which appears to be my terminal background as its background, so it looks seamless when I enter Vim.
(my terminal window on top of a web page)
(the very same terminal window entering vim)
Lately I decided to switch to some other color scheme. As I was trying out jellybeans, I noticed that it has overridden my default terminal background settings, both its color and transparency, as you can see below.
(the very same terminal window entering vim now with jellybeans)
I have installed the AfterColors plugin, but I don't know where to start to tweak the color scheme to have the default background back. Any suggestioins?
Set the ctermbg to none:
hi Normal ctermbg=none
In addtional of perreal's answer, you also need to
highlight NonText ctermbg=none
this will help make other "nothing exist" region to be transparent.

How to base vim colors off of iTerm colors?

I recently updated my iTerm color scheme and when I make a selection in visual mode (using vim) the color is awful. iTerm has some color options for Selection and Selection text what I would like to use as guibg and guifg respectivly. I tried this in my vim config but couldn't get it to work.
hi Visual guifg=SelectionText guibg=Selection
Is this possible to do?
As far as I know, the colors used for text, background, selection and friends are not exported by iTerm so what you want is out of reach.
Instead, use the same color you used in the settings window, converted to its nearest neighbor in the xterm palette.
Also, you are supposed to use ctermbg and ctermfg as guibg and guifg are, obviously, for GUI Vim and thus wrong and useless in your situation.
Example:
hi Visual ctermfg=16 ctermbg=67

Vim syntax highlighting in terminal only affects the text background and not the text colour

I have just started using Vim in a terminal (PuTTY or MinTTY), after always using gVim. However, when using syntax highlighting, rather than the actual text colour changing appropriately, its background is changed to whatever colour -- and it looks horrible!
I've set my terminal to use 256 colours and downloaded a 256 colour colour scheme. I checked that the ctermfg and ctermbg settings are as I expect, but I still get this problem... Is this a Vim or a terminal configuration issue?
Many color schemes have features that are only supported in gvim/macvim. Some color schemes such as solarized, can be configured to support 256 color terminals using a setting such as let g:solarized_termcolors=256. For other color schemes, look at plugins like this one: http://www.vim.org/scripts/script.php?script_id=1809 and this one: http://www.vim.org/scripts/script.php?script_id=2390

How do I make a vim color scheme work with gvim?

I am trying to use this color scheme
https://github.com/goatslacker/mango.vim
It works when I open vim from the command line. But I usually open files from the file manager GUI and that opens them in gvim. The color scheme displays a white background in gvim. How do I fix it so it displays a dark background?
I've looked at the mango.vim file and it has the line set background=dark but apparently that is not working.
Vim separates between term, cterm (color terminal) and gui since they are capable of handling different numbers of colors
mango.vim only gives highlighting instructions for cterm. If it were for gui aswell it would look like this:
hi Comment term=bold ctermfg=Red guifg=Red0
So if your color-scheme lacks gui support it will reset to default.

Resources