DEV Community

Cason Adams
Cason Adams

Posted on

2

Simple vim / terminal color changing

Why?

So I have been looking for solutions that sync my vim colors with my terminal colors. And there are many awesome solutions out there. But none of them gave me the flexibility /freedom I wanted that was simple. So I decided to try to build my own system.

Terminal setup

So there are two options here:

I prefer alacritty-shell because it is the simplest, fastest, and most flexible. However, it requires the use of the alacritty terminal.

Vim setup

Install walh a clean vim colorscheme.

walh will use the first 16 colors from the terminal, and orange(color208) and grey(color247).

Result

Vim colorscheme that matches the terminal colors. Now one can open vim and decided to change the terminal colors from a light theme to a dark theme all from running alacritty_{theme} or walh_{theme}. This gets better if one lives in a multiplex terminal like tmux. This opens doors for setting up scheduled tasks to switch themes based on the time of day.

Image description

Image description

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs