vim: Add configurable yank highlight background color#49517
Merged
dinocosta merged 2 commits intozed-industries:mainfrom Feb 26, 2026
Merged
vim: Add configurable yank highlight background color#49517dinocosta merged 2 commits intozed-industries:mainfrom
dinocosta merged 2 commits intozed-industries:mainfrom
Conversation
Make the vim yank background color configurable as "vim.yank.background".
* Update theme importer to map the `vim_yank_background` color to the VS Code's `editor.rangeHighlightBackground` color. This is not set in stone, but taking a quick look at the list of available colors for a theme, this one seems to make sense. * Update `theme::schema::theme_colors_refinement` such that, if a theme does not define the `vim.yank.background` color, it'll default to the `editor.document_highlight.read_background` color, which it was already using before these changes.
dinocosta
approved these changes
Feb 26, 2026
Member
dinocosta
left a comment
There was a problem hiding this comment.
Thanks @kaspernyhus ! 🙂
I've pushed a smaller commit updating the VS Code theme importer, as well as the fallback color when a theme does not define the vim.yank.background color – b90e5ce .
rtfeldman
pushed a commit
that referenced
this pull request
Feb 27, 2026
* Add a dedicated `vim.yank.background` theme color for the yank highlight, which was previously hardcoded to `editor.document_highlight.read_background`. * When a theme doesn't define `vim.yank.background`, it falls back to `editor.document_highlight.read_background` for backwards compatibility. * The VS Code theme importer maps `editor.rangeHighlightBackground` to this new color. Release Notes: - Added configurable `vim.yank.background` theme color for vim yank background highlight --------- Co-authored-by: dino <dinojoaocosta@gmail.com>
tahayvr
pushed a commit
to tahayvr/zed
that referenced
this pull request
Mar 4, 2026
…#49517) * Add a dedicated `vim.yank.background` theme color for the yank highlight, which was previously hardcoded to `editor.document_highlight.read_background`. * When a theme doesn't define `vim.yank.background`, it falls back to `editor.document_highlight.read_background` for backwards compatibility. * The VS Code theme importer maps `editor.rangeHighlightBackground` to this new color. Release Notes: - Added configurable `vim.yank.background` theme color for vim yank background highlight --------- Co-authored-by: dino <dinojoaocosta@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make the vim yank background highlight color configurable as "vim.yank.background".
Currently the yank highlighting is hardcoded to
editor.document_highlight.read_backgroundmaking it impossible to configure a separate color for highlighting when yanking.Release Notes:
vim.yank.backgroundtheme color for vim yank highlight