forked from tony/vim-config-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.vim
63 lines (48 loc) · 2.02 KB
/
colors.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"===============================================================================
" Quickhl
"===============================================================================
let g:quickhl_colors = [
\ "gui=bold ctermfg=255 ctermbg=153 guifg=#ffffff guibg=#0a7383",
\ "gui=bold guibg=#a07040 guifg=#ffffff",
\ "gui=bold guibg=#4070a0 guifg=#ffffff",
\ ]
"autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3
"autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4
let indent_guides_enable_on_vim_startup = 0
let indent_guides_auto_colors = 0
hi IndentGuidesOdd ctermbg=black
hi IndentGuidesEven ctermbg=darkgrey
" listchar=trail is not as flexible, use the below to highlight trailing
" whitespace. Don't do it for unite windows or readonly files
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
augroup MyAutoCmd
autocmd BufWinEnter * if &modifiable && &ft!='unite' | match ExtraWhitespace /\s\+$/ | endif
autocmd InsertEnter * if &modifiable && &ft!='unite' | match ExtraWhitespace /\s\+\%#\@<!$/ | endif
autocmd InsertLeave * if &modifiable && &ft!='unite' | match ExtraWhitespace /\s\+$/ | endif
autocmd BufWinLeave * if &modifiable && &ft!='unite' | call clearmatches() | endif
augroup END
" highlight current line
au WinLeave * set nocursorline nocursorcolumn
au WinEnter * set cursorline cursorcolumn
set cursorline cursorcolumn
let g:airline_theme = 'base16'
let g:indentLine_color_term = 239
filetype plugin indent on
syntax enable
let base16colorspace=256 " Access colors present in 256 colorspace
if &t_Co <= 256 && &term!="xterm" && &term!="xterm-256color" && &term!="screen-256color" && &term!="rxvt-256color"
colorscheme desert
else
" 256bit terminal
set t_Co=256
if filereadable(expand('~/.vim/bundle/base16-vim/colors/base16-monokai.vim'))
colorscheme base16-monokai
else
colorscheme molokai
" molokai: for 256 colors
let g:rehash256 = 1
endif
endif
" Tell Vim to use dark background
set background=dark