-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
73 lines (51 loc) · 1.25 KB
/
vimrc
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
if has('gui_running')
:set guifont=Consolas\ 10
: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
func! ToggleGUI()
if &go=~#'m'
if &go=~#'m'
if &go=~#'m'
call HideGUI()
else
call ShowGUI()
endif
else
call ShowGUI()
endif
else
call ShowGUI()
endif
endfunc
func! ShowGUI()
:set guioptions+=m
:set guioptions+=T
:set guioptions+=r
:set guioptions+=L
endfunc
func! HideGUI()
: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
endfunc
endif
colorscheme desert
:set background=dark
set tabstop=2
set softtabstop=2
set shiftwidth=2
set nocompatible
set backspace=2
syntax on
map <F7> :tabp<ENTER>
map <F8> :tabn<ENTER>
set smartindent
set expandtab
map <F9> :set mouse=<ENTER>
map <F10> :set mouse=a<ENTER>
map <F11> :call ToggleGUI()<ENTER>
"map <MouseUp> <C-E>
"map <MouseDown> <C-Y>