-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
36 lines (31 loc) · 1005 Bytes
/
.vimrc
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
"This is for enabling syntax highlighting on mac
filetype plugin indent on
syntax on
"This has to be before other stuff for some reason
set background=light
set expandtab
set formatoptions=njtcroql
set hlsearch
set number
set shiftwidth=4
set showmatch
set smarttab
set softtabstop=4
set tabstop=4
set nofixeol
set redrawtime=3000
au FileType gitcommit setlocal tw=71 shiftwidth=2 softtabstop=2
au FileType make setlocal noexpandtab
au FileType python setlocal tw=79
au FileType yaml setlocal tw=79 shiftwidth=2 softtabstop=2
au FileType rst setlocal tw=79 shiftwidth=2 softtabstop=2 spell
au FileType markdown setlocal tw=79 spell
hi Comment ctermfg=darkgreen
hi Search ctermbg=cyan ctermfg=black
hi Type ctermfg=cyan
hi ExtraWhitespace ctermbg=red
hi OverLength ctermbg=red ctermfg=white guibg=#592929
hi SpellBad cterm=underline ctermbg=black ctermfg=red
au BufWinEnter * let w:m1=matchadd('OverLength', '.\%>80v')
au BufWinEnter * let w:m2=matchadd('ExtraWhitespace', '\s\+$')
set encoding=utf-8