Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim: Make syntax colors more like solarized #70

Merged
merged 2 commits into from
Mar 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions vim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ color](https://gist.github.com/XVilka/8346728#now-supporting-true-color), add
issue](https://github.com/jan-warchol/selenized/issues/65) for more details)


Syntax coloring choices
-----------------------

Selenized aims to have a similar feel to Solarized, but it doesn't follow all
Solarized coloring choices. In particular, I believe that using green for
keywords doesn't look good, so I've made them yellow (swapping with types,
which are yellow in Solarized). If you don't like this choice, add this to your
`.vimrc`:

let g:selenized_green_keywords=1

Also note that selenized doesn't use orange and violet because they are not
available in ANSI color palette (Solarized worked around this with an [ugly
hack](https://github.com/jan-warchol/selenized/blob/master/whats-wrong-with-solarized.md#problems-with-implementation)).
However, I plan to use orange and violet in the GUI version of the theme.


Contributing
------------

Expand Down
21 changes: 13 additions & 8 deletions vim/_hl_groups.colortemplate
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Normal fg_0 bg_0

# Group Foreground Background Attributes
IncSearch red none reverse
Search none none reverse
Search yellow none reverse
Visual none bg_2
LineNr dim_0 bg_1
CursorLineNr fg_1 none
Expand Down Expand Up @@ -50,19 +50,24 @@ lCursor -> Cursor

# Group Foreground Background Attributes
Comment dim_0 none italic
Constant red none
String green none
Statement br_yellow none bold
Identifier magenta none
PreProc blue none bold
Special blue none
Constant cyan none
Identifier br_blue none
Statement br_yellow none
PreProc magenta none
Type green none
Special red none
Error red none bold
Todo br_yellow bg_1 reverse
Todo magenta bg_1 bold reverse
Underlined blue none underline

#if get(g:, '@optionprefix_green_keywords', 0)
Statement green none
Type yellow none
#endif

# commonly linked groups
Function -> Identifier
String -> Constant
Number -> Constant
Boolean -> Constant
Character -> Constant
Expand Down
Loading