a Vim ColorScheme & iTerm2 Color Preset
copy ./colors/thyname.vim
to your path ~/.vim/colors/thyname.vim
in .vimrc
:
colorscheme thyname
set background=light
in your .vimrc
add:
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
let g:airline_theme = 'solarized'
let g:airline#extensions#syntastic#enabled = 1
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tagbar#enabled = 1
let g:airline_skip_empty_sections = 1
iTerm2 => Preferances => profiles => Colors => Color Presets => import (file)
if you use oh-my-zsh, you can use my color setting.
this theme thy-name.zsh-theme
is base on 'halflife.zsh-theme'
Copy to ~/.oh-my-zsh/themes/thy-name.zsh-theme
In .zshrc
, add ZSH_THEME="thy-name"
defaults write org.vim.MacVim AppleFontSmoothing -int 0
True color (include tmux, but vim-in-tmux's color is a little bit darker, don't know why, and it depends..)
in .vimrc
:
if !has('gui')
if !empty($TMUX)
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
" make bg transparent in vim-in-tmux mode, for bgColor's bug
highlight Normal ctermbg=NONE guibg=NONE
endif
set termguicolors
endif