-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.exrc
55 lines (54 loc) · 1.27 KB
/
.exrc
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
set nocompatible
set bg=light
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=darkblue
autocmd FileType sh
\ syn match v /$#.*/ |
\ syn match shebang /#!/ |
\ syn match com /#.*$/ |
\ syn match space_err display excludenl /\s\+$/ |
\ hi shebang cterm=NONE |
\ hi space_err ctermbg=red |
\ hi com ctermfg=darkblue |
\ hi v cterm=NONE |
autocmd FileType c
\ syn match com /\/\/.*$/ |
\ syn region com start=/\/\*/ end=/\*\// |
\ syn match space_err display excludenl "\s\+$" |
\ hi space_err ctermbg=red |
\ hi com ctermfg=darkblue |
autocmd FileType yaml
\ syn match item /.\+\w\+:$/ contains=com |
\ syn match item2 /.\+\w\+: / contains=com |
\ syn match com /#.*$/ |
\ hi item ctermfg=darkblue |
\ hi item2 ctermfg=darkblue |
\ hi com ctermfg=darkred
autocmd FileType make
\ setlocal noexpandtab ts=8 sts=8
if $_ == "/usr/bin/ex"
set nu
endif
let g:loaded_matchparen=1