-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gvimrc
62 lines (55 loc) · 1.08 KB
/
.gvimrc
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
" fonts
if has('win32')
set guifont=Monaco:h15
else
set guifont=SourceCodePro-Regular:h11
endif
" Appearance
colorscheme onehalfdark
set background=dark
set cursorline
set laststatus=2
set linespace=4
set list
set number
set numberwidth=5
" Airline
let g:airline_theme='onehalfdark'
" Terminal colos
let g:terminal_ansi_colors = [
\ '#383a42',
\ '#e45649',
\ '#50a14f',
\ '#c18401',
\ '#0184bc',
\ '#a626a4',
\ '#0997b3',
\ '#fafafa',
\ '#282c34',
\ '#e06c75',
\ '#98c379',
\ '#e5c07b',
\ '#61afef',
\ '#c678dd',
\ '#56b6c2',
\ '#dcdfe4',
\ ]
highlight Terminal guifg='#dcdfe4'
highlight Terminal guibg='#282c34'
" Tab setting
if has('win32')
function! GuiTabLabel()
let l:label = ''
let l:bufnrlist = tabpagebuflist(v:lnum)
let l:bufname = fnamemodify(bufname(l:bufnrlist[tabpagewinnr(v:lnum) - 1]), ':t')
let l:label .= l:bufname == '' ? 'No title' : l:bufname
for bufnr in l:bufnrlist
if getbufvar(bufnr, "&modified")
let l:label .= '+'
break
endif
endfor
return l:label
endfunction
set guitablabel=%N:\ %{GuiTabLabel()}
endif