-
Notifications
You must be signed in to change notification settings - Fork 0
/
_vimrc_keymap_F1_F12.elvis~
35 lines (32 loc) · 1.05 KB
/
_vimrc_keymap_F1_F12.elvis~
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
""""""""""""""""""""""""""""""""""""""""
" <F1> ~ <F12>
"
""""""""""""""""""""""""""""""""""""""""
"---------<F1>---------
"---------<F2>---------
"bind F2 to 'set number!' which toggles on/off.
map <silent> <F2> :set number!<CR>
"---------<F3>---------
"---------<F4>---------
"---------<F5>---------
"---------<F6>---------
"---------<F7>---------
"---------<F8>---------
"---------<F9>---------
"---------<F10>---------
"---------<F11>---------
"one key compile 一键编译
map <silent> <F11> :!start /use/bin/g++ "%:p"<CR>
"==Colorscheme== "==let's switch backgrounds pretty quickly ==
map <F11> :let &background = ( &background == "dark"? "light" : "dark" )<CR>
"
"---------<F12>--------- "Toggle Menu and Toolbar
set guioptions-=m
set guioptions-=T
map <silent> <F12> :if &guioptions =~# 'T' <Bar>
\set guioptions-=T <Bar>
\set guioptions-=m <bar>
\else <Bar>
\set guioptions+=T <Bar>
\set guioptions+=m <Bar>
\endif<CR>