-
Notifications
You must be signed in to change notification settings - Fork 7
/
gvimrc
59 lines (48 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
" GVIM-specific configuration file
" Input {
set noimdisable
"inoremap <ESC> <ESC>:set iminsert=0<CR>
set imactivatekey=C-space
" }
" Screen {
if has('fullscreen')
if exists('g:DEFAULT_FULLSCREEN')
set fuopt=maxvert,maxhorz " full screen
au GUIEnter * set fullscreen
endif
" toggle fullscreen mode
nmap <F1> :set fullscreen!<CR>
endif
set guioptions-=T " remove the toolbar
set guioptions-=m " remove the menu
set guioptions-=l " remove the left scrollbar
set guioptions-=L " remove the left scrollbar
set guioptions-=r " remove the right scrollbar
set guioptions-=R " remove the right scrollbar
"set guioptions=mcr
"set guifont=Consolas:h13
set guifont=Monaco:h12
set lines=80 " default in my screen: 75
"set background=dark
" }
" Status line {
au InsertEnter * call utils#insertStatuslineColor(v:insertmode)
au InsertLeave * hi statusline guibg=blue
" }
" Tab {
set tabpagemax=15 " show at most 15 tabs
set showtabline=2 " always show tab line
if exists('g:useGuiTab') " use GUI tab
set guioptions+=e
set guitabtooltip=%{utils#guiTabToolTip()}
set guitablabel=%{utils#guiTabLabel()}
else " use non-GUI tab
set guioptions-=e
set tabline=%!utils#tabLine()
endif
" }
" Cursor {
set cursorline
set cursorcolumn
set mousehide " hide mouse when typing
" }