-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gvimrc
37 lines (31 loc) · 836 Bytes
/
.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
scriptencoding utf-8
" エラー音とビジュアルベルの抑制
set noerrorbells
set novisualbell
set visualbell t_vb=
set t_Co=256
set antialias
set showtabline=2 "常にタブ表示
set guioptions='grLt'
" タブの表示設定
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
let l:wincount = tabpagewinnr(v:lnum, '$')
if l:wincount > 1
let l:label .= '[' . l:wincount . ']'
endif
for bufnr in l:bufnrlist
if getbufvar(bufnr, '&modified')
let l:label .= '[+]'
break
endif
endfor
return l:label
endfunction
set guitablabel=%N:\ %{GuiTabLabel()}
set background=dark
colorscheme iceberg
set guifont=Ricty:h13