Vim Color Schemes
vimcolorschemes.com
vimcolorschemes.com
I either have to change vim's background setting from dark to light or use a different color scheme like zellner.
On one hand, you have a quite reasonable syntax highlighting and highlight groups that mostly use the so-called ANSI colors of the underlying terminal emulator, which are all good things.
On the other hand, the highlighting of UI elements is clearly a second thought, a light background is assumed by default, the highlight group are inconsistent, and Vim's own heuristics for determining what features are supported by the underlying terminal emulator are beyond broken.
Some of those issues could be easily fixable at a high level if the default colorscheme was actually a colorscheme like blue or desert but it is not so, as we focused our efforts on the latter, we didn't try to fix default.
It is on our radar, though.
Not gonna use those clunky base16 scripts, though. TL;DR in GNU screen: $ echo -e '\eP\e]4;0;rgb:01/3f/13\a\e\\'
In the end, rewriting the upper 8 colors to not match the established ANSI color scheme is what broke it for me.
Edit:
screenshot: https://imgur.com/a/ZPWjSKk, since terminal.sexy URL sharing wasn't working so well for me. I'd post a desktop screenshot, but I'm on the road and my laptop's WiFi just stopped working, lol.
Some background: cyan is now safety orange. This is because cyan hurts my eyes on a light background and it can be tricky to distinguish from blue, while orange is pretty easy to distinguish from red. IIRC I picked out the shades of blue and magenta myself because most color design documents I could dig up had blue and purple usage paired with a specific background color (usually white) which didn't carry over very well to a dark background. I find these shades to be distinguishable and flexible enough for just about any background color.
The greyscale highlights are generally for tmux and nvim status line background colors, which I use to distinguish cells instead of seperator glyphs.
[colors]
foreground = #383838
foreground_bold = #383838
cursor = #383837
background = #aaaaaa
#black (is black)
color0 = #000000
#red (fire engine red)
color1 = #ce2029
#green (London underground green)
color2 = #007d32
#yellow (school bus yellow)
color3 = #ffd800
#blue (Persian blue)
color4 = #1c39bb
#magenta (Rebecca purple)
color5 = #663399
#cyan (actually "ANSI Z535 safety orange", for my eyes)
color6 = #ff7900
#white (from the color white)
color7 = #ffffff
###Highlights###
# Evenly-spaced increments of the greyscale
# Makes for good tmux/nvim statuslines
color8 = #1b1b1b
color9 = #383838
color10 = #545454
color11 = #717171
color12 = #8d8d8d
color13 = #aaaaaa
color14 = #c6c6c6
color15 = #e3e3e3Thanks!
Having consistency between neovim, fzf, bat, tmux, tig and fish is lovely.
Good explanation: https://jeffkreeftmeijer.com/vim-16-color/
25 years with vim...all the way with vscode now
https://draculatheme.com/visual-studio-code
They're all separate projects on GitHub so you can usually just use them with your regular plugin manager or even a git submodule.
I use VSCode NeoVim and clangd and a few other extensions. I've used a ton of vims and vim apps, but I'm just done with tweaking editors now. I'm happy with this setup.
My color theme is Light (Visual Studio). I like it but then color themes are personal choices.
(Narrator: They colonized mars before this happened)
> base16-manager set nord
to use the nord theme on all programs.
https://github.com/romainl/Apprentice
Has been a great experience so far
Is there a way to search for non low-contrast themes? My search for "High contrast" among the light themes yielded no results, yet i saw some themes that fit the bill while browsing.
Don't you mean 'Darcula'?
Sure, there's a 'Dracula' theme for vim, but it's not really universal and consistent.
These things look beautiful on the web page. But dang it's so hard to get your terminal, Tmux and Vim/NeoVim to display properly. I've literally used Distinguished as my color scheme for 10 years just because I got it working, it looks nice and I really don't want to fight with configs.
I'm still not interested in using VSCode as my daily driver though. I tried it for about 6 months solid. It wasn't for me.
* export TERM=xterm-256color
* Use tmux attach -2 (-2=256color)
* In tmux <c-b>:set -g escape-time 0
* In vim, :set t_Co=256
If your terminal is the issue, use rxvt-unicode256color as it is the best terminal emulator (kitty is too slow (Python), urxvtd can segfault, xterm lacks features), or iTerm2 for Mac (Terminal.app recently broke colors and haven't figured out how to fix them, plus it lacks panes which I use to simulate an i3 environment). On Mac you have to enable option as meta key to make alt work as well
I looked it up and found https://github.com/kovidgoyal/kitty/issues/330 where the dev says:
> that's just python interpreter startup time
So... The answer is just "yeah it's slow". When you're used to a few milliseconds for terminal spawn, .5s is eons.
I feel like I'm missing something. I know I could just do an internet search to figure it out, but why doesn't this site include instructions on how to install one of these themes?
I've tried to get into vim in the past, but you know how it goes... limited time and all that. I've gone through vimtutor. All I can really do from memory are the basics. Some of that is still on me for not committing, but sometimes I wish more was done to make vim more approachable. I hate to say it but little things like this with the color schemes are probably a big part of what drives adoption for a lot of people because it encourages tinkering.
A huge advantage of vim (and emacs too) is it's so easy to extend, and I have macros and sessions and keyboard shortcuts that save me a lot of time and repetition. The initial month sucked, sure, but once I got used to the idea of modes and the keyboard shortcuts became muscle memory, I started to really see why people love it. I don't think I would ever go back to VS Code.
For reference, I work in Ruby, JS/React, and C# mostly.
https://vimcolorschemes.com/vim-scripts/desert256.vim
Here’s more or less how it’s supposed to look: http://hans.fugal.net/vim/colors/desert.html (it’s the original desert theme, not the desert256 fork, but it’s still much closer than the vimcolorschemes.com rendering)
Base16 is another popular one with a ton of implementations: https://github.com/chriskempson/base16
Here's mine: https://i.imgur.com/slYc70t.png
When the words are invisible during day, then I can't use such theme.
That's it buddy you just made the list! You'll never work in this town again you hear me!!! Neverrrrr!!
For me, using light-themed software for a prolonged period causes my eyes to strain and my head to ache. Sure, they do so to a very little extent, but the uncomfort is often distracting if not tempting me to slack off.
So for me, yes, dark themes help me get in the zone much easier. But of course that has very little to do of the colors scheme itself.
But what absolutely destroys the experience for me is when I have to look something up on the internet and end up on a page that doesn't honor the browser's dark mode. The switch between bright and dark is extremely jarring.
No such luck however with design tools where changing the theme can't be an option.
As a colorscheme author, though, I can attest that working on a dark background gives me a lot more "range", so to speak, than on a light background, which tends to make "dark" colorschemes much easier to create and more expressive.
For me, the sweat spot is at around 10-20% lightness.
However, some people are sensitive to light, so the optics are not the only consideration.