-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
gvimrc
50 lines (44 loc) · 892 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
38
39
40
41
42
43
44
45
46
47
48
49
50
" gvim specific settings.
"
set guicursor+=a:blinkon0
set guifontset=
" Disable menu.
set guioptions-=m
" Disable toolbar.
set guioptions-=T
" Disable right scrollbar.
set guioptions-=r
" Disable left scrollbar.
set guioptions-=L
" Disable GUI tab menu.
set guioptions-=e
" Set the size and font.
if &diff
" Use double width for Vim diff.
set columns=174
else
set columns=87
endif
set lines=52
if has('gui_gtk2') || has('gui_gtk3')
set guifont=Iosevka\ Custom\ 11.5
elseif has('gui_macvim')
set guifont=Iosevka-Custom:h13
endif
" gvim specific functions.
"
function! DoubleSizeAndVsplit() abort
if &columns != 174
set columns=174
vsplit
winpos 20 20
else
wincmd w
close
set columns=84
winpos 20 20
endif
endfun
" gvim specific keyboard mappings.
"
noremap <Leader>V :call DoubleSizeAndVsplit()<CR>