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

use solarized vim color in terminal is wrong #169

Open
notrace opened this issue Jul 19, 2014 · 5 comments
Open

use solarized vim color in terminal is wrong #169

notrace opened this issue Jul 19, 2014 · 5 comments

Comments

@notrace
Copy link

notrace commented Jul 19, 2014

why the comment is green?
2014-07-19 11 17 14

2014-07-19 11 22 07

I want to it like this
09264eac949de0b99be3f6fa14dbe866

@stephenway
Copy link
Contributor

What do your color scheme settings look like in terminal?

@morenoh149
Copy link
Contributor

@notrace clarify your question

@rbaindourov
Copy link

I have the same problem.

I first heard of maximum awesome a couple of years back, and I can never get it to look right out of the box on the command line.

Usually the first thing I do on getting a new macbook from an employer is install maximum awesome.

@rudle
Copy link
Contributor

rudle commented Sep 10, 2015

@rbaindourov would you mind sharing some of the remedies for the incorrect syntax highlighting? It seems like this issue is happening to at least a few users (assuming 10% of people report a problem…).

I've never had a problem with colorschemes, so I'm not going to be of much help. FWIW, I use iTerm 2.

@rbaindourov
Copy link

iTerm 2, Build 2.1.1.
OSX 10.10.4

I began by modifying my ~/.vimrc to reflect these changes:

set background=dark

" don't bother with vi compatibility
set nocompatible

" enable syntax highlighting
syntax enable
let g:solarized_termcolors=   256
let g:solarized_termtrans =   1
let g:solarized_degrade   =   1
let g:solarized_bold      =   0
let g:solarized_underline =   0
let g:solarized_italic    =   0
let g:solarized_contrast  =   "high"
let g:solarized_visibility=   "high"
colorscheme solarized

I did this first and had an error message on vim start which required me to put the solarized.vim file into the~/.vim/colors directory. You can download solarized theme here, for a variety of IDE's and environments.

This worked well, but my coworker spied my predicament and suggested I change my iterm colors instead. Which I tried as well, but it didn't seem to affect my vim editor after the .vimrc edits.

Changing the iTerm color scheme also required me to add

export CLICOLOR=1

to my bash profile to preserve ls -al and other highlighting in the terminal.

Thanks!

Let me know if you make any improvements. Once you have this setup, you should be able to modify the theme as you wish by simply editing the theme file directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants