-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.rc.vim
132 lines (111 loc) · 2.85 KB
/
gui.rc.vim
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
"---------------------------------------------------------------------------
" GUI:
"
"---------------------------------------------------------------------------
" Fonts: "{{{
set ambiwidth=double
if has('win32') || has('win64')
" For Windows.
"set guifontwide=VL\ Gothic:h11
"set guifontwide=MigMix\ 1M:h11
set guifontwide=Ricty:h12
set guifont=Ricty:h12
"set guifont=Anonymous\ Pro:h11
"set guifont=Courier\ New:h11
"set guifont=MS\ Gothic:h11
"set guifont=VL\ Gothic:h11
"set guifont=Consolas:h12
"set guifont=Bitstream\ Vera\ Sans\ Mono:h11
"set guifont=Inconsolata:h12
"set guifont=Terminal:h10:cSHIFTJIS
" Number of pixel lines inserted between characters.
set linespace=2
" Toggle font setting.
function! FontToggle()
if &guifont=~ '^VL Gothic:'
set guifont=Courier\ New:h11
set guifontwide=VL\ Gothic:h11
" Width of window.
set columns=155
" Height of window.
set lines=50
else
set guifont=VL\ Gothic:h11.5
set guifontwide=
" Width of window.
set columns=200
" Height of window.
set lines=43
endif
endfunction
nnoremap TF :<C-u>call FontToggle()<CR>
if has('kaoriya')
" For Kaoriya only.
set ambiwidth=auto
endif
elseif has('mac')
" For Mac.
set guifont=Osaka-等幅:h14
else
" For Linux.
set guifontwide=VL\ Gothic\ 11
set guifont=Courier\ 10\ Pitch\ 11
endif"}}}
"---------------------------------------------------------------------------
" Window:"{{{
"
if has('win32') || has('win64')
" Width of window.
set columns=230
" Height of window.
set lines=55
" Set transparency.
"autocmd GuiEnter * set transparency=221
" Toggle font setting.
command! TransparencyToggle let &transparency =
\ (&transparency != 255 && &transparency != 0)? 255 : 221
nnoremap TT :<C-u>TransparencyToggle<CR>
else
" Width of window.
set columns=151
" Height of window.
set lines=41
endif
" Don't override colorscheme.
if !exists('g:colors_name')
execute 'colorscheme' globpath(&runtimepath,
\ 'colors/candy.vim') != '' ? 'candy' : 'desert'
endif
"}}}
"---------------------------------------------------------------------------
" Mouse:"{{{
"
set mousemodel=extend
" Don't focus the window when the mouse pointer is moved.
set nomousefocus
" Hide mouse pointer on insert mode.
set mousehide
"}}}
"---------------------------------------------------------------------------
" Menu:"{{{
"
" Hide toolbar and menus.
set guioptions-=Tt
set guioptions-=m
" Scrollbar is always off.
set guioptions-=rL
" Not guitablabel.
set guioptions-=e
" Confirm without window.
set guioptions+=c
"}}}
"---------------------------------------------------------------------------
" Views:"{{{
"
" Don't highlight search result.
set nohlsearch
" Don't flick cursor.
set guicursor&
set guicursor+=a:blinkon0
"}}}
" vim: foldmethod=marker