summaryrefslogtreecommitdiff
path: root/.config/.vimrc
blob: 8ad26f8c7b4fc68c1eee7286d357d912b387ddfd (plain)
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
call plug#begin()
Plug 'junegunn/goyo.vim'
Plug 'junegunn/fzf.vim'
call plug#end()

"visual
syntax on
let g:netrw_banner=0
set termguicolors
set background=dark
colorscheme quiet
let v:colornames['bg0'] = '#242829'
let v:colornames['fg0'] = '#dcd7d7'
let v:colornames['mag'] = '#e18d8e'
let v:colornames['cya'] = '#5cadc6'
let v:colornames['blu'] = '#84b8a9'
let v:colornames['redu'] = '#e6507a'
let v:colornames['yel'] = '#2e89a5'
hi normal       guifg=fg0 guibg=bg0
hi constant     guifg=mag
hi character    guifg=mag
hi number       guifg=mag
hi boolean      guifg=mag
hi float        guifg=mag
hi identifier   guifg=yel
hi statement    guifg=blu
hi type         guifg=cya
hi special      guifg=yel
hi preproc      guifg=blu
hi visual       guifg=mag guibg=bg0
hi incsearch    guifg=mag guibg=bg0
hi matchparen   guifg=mag guibg=bg0
hi quickfixline guifg=bg0 guibg=fg0
hi error	guifg=bg0 guibg=redu

"formatting
set nowrap
autocmd BufRead,BufNewFile *.c,*.cpp {
	set cindent
	set cinoptions=:0,l1,t0,g0,(0
}

"functional
set clipboard+=unnamedplus
set nohlsearch
set incsearch

"bindings
let mapleader=","

map <leader>e	:Ex<cr>
map <leader>v	:Vex<cr>
map <leader>s	:Sex<cr>
map <leader>q	:q<cr>

set makeprg=./build.sh
map <leader>m	:make!<cr>:cope<cr>
map <leader>n	:cnext<cr>
map <leader>g	:grep!<space>-rn<space><space>.<left><left>''<left>