Skip to content

Commit

Permalink
Merge pull request jan-warchol#70 from jan-warchol/more-solarized
Browse files Browse the repository at this point in the history
Vim: Make syntax colors more like solarized
  • Loading branch information
jan-warchol authored Mar 22, 2020
2 parents 137eef8 + 6188b37 commit 62c2394
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 142 deletions.
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

0 comments on commit 62c2394

Please sign in to comment.