Skip to content

vim: Add color to mode status - #32279

Closed
Cretezy wants to merge 1 commit into
zed-industries:mainfrom
Cretezy:push-oyrutzwpnzpk
Closed

vim: Add color to mode status#32279
Cretezy wants to merge 1 commit into
zed-industries:mainfrom
Cretezy:push-oyrutzwpnzpk

Conversation

@Cretezy

@Cretezy Cretezy commented Jun 7, 2025

Copy link
Copy Markdown
Contributor

image
image

Release Notes:

  • Vim: Add color to mode status

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 7, 2025
@d1y

d1y commented Jun 7, 2025

Copy link
Copy Markdown
Contributor

I think it's better to provide a setting item to close 👀

@Cretezy

Cretezy commented Jun 7, 2025

Copy link
Copy Markdown
Contributor Author

@d1y Agreed, can add one!

Do you have any opinion on the -- surrounding the mode label? Personally I don't think they are required, but we can keep the old behavior when the setting is off.

Additionally, what should be the default for the setting? On (color on)?

@d1y

d1y commented Jun 7, 2025

Copy link
Copy Markdown
Contributor

Additionally, what should be the default for the setting? On (color on)?

A biased suggestion: default off

@Cretezy
Cretezy force-pushed the push-oyrutzwpnzpk branch from 1f068ed to c7e2478 Compare June 7, 2025 16:53
@maxdeviant maxdeviant changed the title Vim: Add color to mode status vim: Add color to mode status Jun 8, 2025
@ConradIrwin

Copy link
Copy Markdown
Member

Thanks for the idea here!

I'm going to close this; although I think it's really cool, one of the primary goals of Zed is to be visually minimal; and (on a completely personal aesthetic decision) having the mode indicator change color feels wrong.

I do understand that this is behind a setting, and defaulting to off, and so it would not change the default experience. That said, I don't want to maintain/document etc. a setting that very few people use.

@Cretezy

Cretezy commented Jun 13, 2025

Copy link
Copy Markdown
Contributor Author

@ConradIrwin This is kind of a precursor to having a full color status bar to indicate the Vim mode, which is a very popular feature in the Vim ecosystem. There's already a request here: #29762

@Captain-Leftovers

Copy link
Copy Markdown

every person using vim i know have a visual indicator for the modes but according to you very few people use it
I think having the option is such a quality of life improvement dont say people dont use it just not true
hope someone implements it
starting to miss the customization of vim already

ConradIrwin added a commit that referenced this pull request Oct 21, 2025
Closes [#14093](#14093)
Builds on [#32279](#32279) by
making it theme dependent.
Discussion
[#37816](#37816)

Wraps the mode label indicator in a div and makes the wrapper and label
theme-able. Label weight to medium
Mode indicator will render like previously if not theme colors have been
set. (i.e., they match zed default- and fallbacks)
Really helps with visual confirmation of current mode.

_Did not investigate further if there is a way to keep the leading and
trailing -- if no theme var given._

Can be applied either by a theme itself or using `theme_overrides` in
settings.json

Theme colors applied via `theme_overrides`
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 08"
src="https://github.com/user-attachments/assets/a00d9ae4-b6db-46a0-84e2-98d2691a11ad"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 16"
src="https://github.com/user-attachments/assets/f27fddab-524d-43c4-9307-46b6a656cd35"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 23"
src="https://github.com/user-attachments/assets/7e477fff-7a40-4c01-95a7-fbd40fff6caa"
/>

No theme applied
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 31"
src="https://github.com/user-attachments/assets/8b7b2c75-007b-4074-a552-181c53f31213"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 36"
src="https://github.com/user-attachments/assets/7a708d81-2033-4d72-a844-57607a0434ea"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 40"
src="https://github.com/user-attachments/assets/526f9d10-4d0f-4bc5-af89-31fcca538ce4"
/>



https://github.com/user-attachments/assets/d0d71d4d-504f-4d18-bbd9-83d3a4b2adb7


Release Notes:

- Vim make mode indicator themeable

---------

Co-authored-by: willyHetland <willy.hetland@zeekit.no>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
jasonsmithio pushed a commit to paddleboarddev/paddleboard that referenced this pull request May 31, 2026
Closes [#14093](zed-industries/zed#14093)
Builds on [#32279](zed-industries/zed#32279) by
making it theme dependent.
Discussion
[#37816](zed-industries/zed#37816)

Wraps the mode label indicator in a div and makes the wrapper and label
theme-able. Label weight to medium
Mode indicator will render like previously if not theme colors have been
set. (i.e., they match zed default- and fallbacks)
Really helps with visual confirmation of current mode.

_Did not investigate further if there is a way to keep the leading and
trailing -- if no theme var given._

Can be applied either by a theme itself or using `theme_overrides` in
settings.json

Theme colors applied via `theme_overrides`
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 08"
src="https://github.com/user-attachments/assets/a00d9ae4-b6db-46a0-84e2-98d2691a11ad"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 16"
src="https://github.com/user-attachments/assets/f27fddab-524d-43c4-9307-46b6a656cd35"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 23"
src="https://github.com/user-attachments/assets/7e477fff-7a40-4c01-95a7-fbd40fff6caa"
/>

No theme applied
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 31"
src="https://github.com/user-attachments/assets/8b7b2c75-007b-4074-a552-181c53f31213"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 36"
src="https://github.com/user-attachments/assets/7a708d81-2033-4d72-a844-57607a0434ea"
/>
<img width="233" height="34" alt="Screenshot 2025-10-08 at 23 01 40"
src="https://github.com/user-attachments/assets/526f9d10-4d0f-4bc5-af89-31fcca538ce4"
/>



https://github.com/user-attachments/assets/d0d71d4d-504f-4d18-bbd9-83d3a4b2adb7


Release Notes:

- Vim make mode indicator themeable

---------

Co-authored-by: willyHetland <willy.hetland@zeekit.no>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants