-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcolors.vim
50 lines (39 loc) · 1.5 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
" <<<<<<<< colors >>>>>>>>
" true color support
" note: with true color support on, must specify highlights with guifg/bf
if (has("termguicolors"))
set termguicolors
endif
" load custom colorscheme, failing silently if it doesn't exist
" `n` colorscheme definition @ $DOTFILES/neovim/colors/n.vim
silent! colorscheme n
" << miscellaneous >>
" darken colorcolumn for decreased visibility
highlight ColorColumn ctermbg=235 guibg=#111112
" search
highlight Search cterm=NONE ctermfg=black ctermbg=cyan guibg=#89CFF0 guifg=#000000
highlight IncSearch cterm=NONE ctermfg=black ctermbg=cyan guibg=#89CFF0 guifg=#000000
" matching
highlight MatchParen cterm=NONE ctermfg=cyan ctermbg=NONE guibg=#808080 guifg=#89CFF0 gui=none
" make comments italic
highlight Comment cterm=italic gui=italic
" << whitespace >>
" whitespace group coloring
highlight ExtraWhitespace ctermbg=magenta guibg=#ff00ff
" keep through color scheme change
augroup whitespace_highlighting
autocmd!
" rehighlight on color scheme change
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=magenta guibg=#ff00ff
" highlight all trailing whitespace
autocmd BufRead,InsertLeave * match ExtraWhitespace /\s\+$/
" avoid highlighting trailing whitespace on current line when editing at the end
" of it
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
augroup END
" << syntax groups >>
" match Tabs on file load (just matches, no highlighting yet)
augroup tabs_match
autocmd!
autocmd BufRead * syntax match Tab /\t/
augroup END