-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gvimrc
38 lines (28 loc) · 1.02 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
" Source 'before' file (if any).
let s:vimbefore_path=expand($HOME . "/.gvimrc.before")
if filereadable(s:vimbefore_path)
exe 'source' plugins_path
endif
set guicursor=a:block-Cursor
set guioptions-=m " remove menu bar
set guioptions-=T " remove toolbar
set guioptions-=r " remove right-hand scroll bar
set guioptions-=L " remove left-hand scroll bar
if has("gui_win32")
set guifont=Hack:h14:cDEFAULT
set linespace=2
noremap <silent> <f11> <esc>:call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<cr>
" Start maximized.
autocmd GUIEnter * simalt ~x
else
set guifont=DejaVu\ Sans\ Mono\ 11
set linespace=-1
noremap <silent> <f11> <esc>:call system("wmctrl -ir " . v:windowid . " -b toggle,fullscreen")<cr>
" Start maximized.
autocmd GUIEnter * call system("wmctrl -i -b add,maximized_vert,maximized_horz -r " . v:windowid)
endif
" Source 'after' file (if any).
let s:vimafter_path=expand($HOME . "/.gvimrc.after")
if filereadable(s:vimafter_path)
exe 'source' plugins_path
endif