-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gvimrc_linux
68 lines (51 loc) · 1.32 KB
/
.gvimrc_linux
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
scriptencoding utf8
" GUI オプション {{{
" スクロールバー削除
set guioptions-=r guioptions-=R guioptions-=l guioptions-=L
" }}}
" GUI フォント {{{
let s:font_settings = {
\ 'nerd': {
\ 'font': 'Droid Sans Mono for Powerline Plus Nerd File Types 10',
\ 'wide': 'Ricty 10'
\ },
\ 'source code pro': {
\ 'font': 'Source Code Pro SemiBold 12'
\ },
\ 'ricty': {
\ 'font': 'Ricty 12'
\ },
\ 'runez': {
\ 'font': 'RUNEZ 12',
\ 'wide': 'Ricty 12'
\ },
\ 'vl gothic': {
\ 'font': 'VL ゴシック 12'
\ }
\ }
function! s:SetGUIFont (setting)
let &guifont = a:setting.font
let &guifontwide = has_key(a:setting, 'wide') ? a:setting.wide : ''
endfunction
function! s:ComleteGUIFont (...)
return keys(s:font_settings)
endfunction
command! -nargs=* -complete=customlist,s:ComleteGUIFont GUIFont call s:SetGUIFont(s:font_settings[<q-args>])
" デフォルトのフォント
GUIFont nerd
" J6uil バッファでは自動でフォント変更
function! J6uilGUIInit()
if !exists('b:anekos_j6uil_initialized')
GUIFont vl gothic
XMonadRefreshWindow
let b:anekos_j6uil_initialized = 1
endif
endfunction
MeowtoCmd FileType J6uil call J6uilGUIInit()
" }}}
" 読書モード {{{
command! Yomi call yomi#start()
if g:plugins_installed
AlterCommand yomi Yomi
endif
" }}}