-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
73 lines (56 loc) · 1.34 KB
/
.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
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
68
69
70
71
72
73
" Remove need for vi compatability
set nocompatible
set noswapfile
set hidden
" File encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
set fileformat=unix
filetype plugin indent on
syntax enable
" Display
set number
set t_Co=256
set background=dark
set laststatus=2
set list
set listchars=tab:»·,space:·,eol:$,trail:◦,extends:▶,precedes:◀
highlight SpecialKey ctermfg=8 guifg=DimGrey
highlight StatusLineNC cterm=bold ctermfg=white ctermbg=darkgray
" Indentation
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
set cindent
" Folding
set foldmethod=syntax
set foldlevelstart=20
" Search
set hlsearch " highlight all items matching search
set incsearch " highlight matches as search term is typed
" Other
set mouse=a
" Filetype-specifc
if has("autocmd")
augroup cpp
autocmd!
autocmd BufEnter *.hpp :setlocal filetype=cpp
augroup END
augroup makefile
autocmd!
autocmd BufEnter Makefile setlocal noexpandtab
augroup END
augroup markdown
autocmd!
autocmd BufNewFile,BufRead *.md inoremap ` ``<left>
autocmd BufNewFile,BufRead *.md inoremap [ []<left>
autocmd BufNewFile,BufRead *.md inoremap ( ()<left>
augroup END
augroup rasi
autocmd!
autocmd BufNewFile,BufRead /*.rasi setf css
augroup END
endif