-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.gvimrc
69 lines (58 loc) · 1.65 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
60
61
62
63
64
65
66
67
68
69
"##############################################################"
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker :
"
" Vim Configuration
"
" Hangchen YU
"
" This is the personal Vim configuration of Hangchen YU.
"
" Note that gvimrc file is always sourced after the vimrc file.
"
" File: gvimrc
"
"##############################################################"
" Color Scheme and Background
" Dark schemes
"colorscheme spiderwebdark
"colorscheme hybrid
"colorscheme codeschool
"set background=dark
" Light schemes
"colorscheme default
"colorscheme spiderweblight
"colorscheme solarized
"colorscheme summerfruit256
colorscheme luna
set background=dark
" Enable mouse in a windows
set mouse=a
" Select Mode
set selectmode=mouse,key,cmd
set keymodel=
behave xterm
" Default font
set guifont=Courier\ 10\ Pitch
" Fonts for specific file type
" autocmd BufEnter *.txt set guifont=Arial\ 12
" Set windows size and position
set columns=115
set lines=37
winpos 150 50
winsize 135 45
" Turn off toolbar
set guioptions-=T
" Toggle menu (F2), toolbar (F3 and right scollbar (F4)
"function! ToggleMenu()
" if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif
"endfunction
"map <silent> <F2> :call ToggleMenu()<CR>
nnoremap <F2> :if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>
nnoremap <F3> :if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>
nnoremap <F4> :if &go=~#'r'<Bar>set go-=r<Bar>else<Bar>set go+=r<Bar>endif<CR>
" Add menu Tab
amenu <silent> T&abs.&New :confirm tabnew<cr>
amenu <silent> T&abs.&Previous :tabprevious<cr>
amenu <silent> T&abs.Ne&xt :tabnext<cr>
amenu <silent> T&abs.&Delete :confirm tabclose<cr>
" End of gvimrc