-
Notifications
You must be signed in to change notification settings - Fork 0
/
.exrc.dark
67 lines (66 loc) · 1.61 KB
/
.exrc.dark
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
64
65
66
67
set nocompatible
set bg=dark
set showmode
set noprompt
set autoindent
set noruler
set nuw=1
set t_ti= t_te=
set t_md=
set t_Co=256
set noloadplugins
set ts=2
set sts=2
set shiftwidth=2
set expandtab
map f !}fmt -w79
map z :w<CR> :set nu<CR> :$r !cc %<CR><CR>
map Z :!./a.out<CR>
map t :set nonu<CR>
map T :set nu<CR>
noremap Q :set nu<CR> Q
filetype on
hi LineNr cterm=NONE ctermfg=grey
autocmd FileType conf,gitconfig
\ syn match com /#.*$/ |
\ hi com ctermfg=lightblue
autocmd FileType sh
\ syn match numbers /[0-9]*/ |
\ syn match v /$#.*/ |
\ syn match shebang /#!/ |
\ syn match func /^.*()/ |
\ syn match com /#.*$/ |
\ syn match space_err display excludenl /\s\+$/ |
\ hi shebang cterm=NONE |
\ hi space_err ctermbg=red |
\ hi com ctermfg=lightblue |
\ hi v cterm=NONE |
\ hi numbers ctermfg=white |
\ hi func ctermfg=white
autocmd FileType c
\ syn match numbers /[0-9]*/ |
\ syn match com /\/\/.*$/ |
\ syn region com start=/\/\*/ end=/\*\// |
\ syn match space_err display excludenl "\s\+$" |
\ syn match string /".*"/ |
\ syn match string /'.*'/ |
\ syn match string /<.*>/ |
\ hi string ctermfg=white |
\ hi space_err ctermbg=red |
\ hi com ctermfg=lightblue |
\ hi numbers ctermfg=white
autocmd FileType yaml
\ syn match item /.\+\w\+:$/ contains=com |
\ syn match item2 /.\+\w\+: / contains=com |
\ syn match com /#.*$/ |
\ syn match var /{{.*}}/ |
\ hi item ctermfg=lightblue |
\ hi item2 ctermfg=lightblue |
\ hi var ctermfg=white |
\ hi com ctermfg=red
autocmd FileType make
\ setlocal noexpandtab
if $_ == "/usr/bin/ex"
set nu
endif
let g:loaded_matchparen=1