-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gvimrc
118 lines (90 loc) · 2.86 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
" System gvimrc file for MacVim
"
" Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com>
" Last Change: Sun Aug 29 2009
"
" This is a work in progress. If you feel so inclined, please help me improve
" this file.
" Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
" <CR> would not be recognized. See ":help 'cpoptions'".
let s:cpo_save = &cpo
set cpo&vim
"
" Global default options
"
if !exists("syntax_on")
syntax on
endif
if !exists("colors_name")
" Use the macvim color scheme by default
colorscheme vividchalk
endif
" To make tabs more readable, the label only contains the tail of the file
" name and the buffer modified flag.
set guitablabel=%M%t
" Send print jobs to Preview.app. This does not delete the temporary ps file
" that is generated by :hardcopy.
set printexpr=system('open\ -a\ Preview\ '.v:fname_in)\ +\ v:shell_error
" This is so that HIG Cmd and Option movement mappings can be disabled by
" adding the line
" let macvim_skip_cmd_opt_movement = 1
" to the user .vimrc
"
if !exists("macvim_skip_cmd_opt_movement")
no <D-Left> <Home>
no! <D-Left> <Home>
no <M-Left> <C-Left>
no! <M-Left> <C-Left>
no <D-Right> <End>
no! <D-Right> <End>
no <M-Right> <C-Right>
no! <M-Right> <C-Right>
no <D-Up> <C-Home>
ino <D-Up> <C-Home>
map <M-Up> {
imap <M-Up> <C-o>{
no <D-Down> <C-End>
ino <D-Down> <C-End>
map <M-Down> }
imap <M-Down> <C-o>}
imap <M-BS> <C-w>
imap <D-BS> <C-u>
endif " !exists("macvim_skip_cmd_opt_movement")
" This is so that the HIG shift movement related settings can be enabled by
" adding the line
" let macvim_hig_shift_movement = 1
" to the user .vimrc (not .gvimrc!).
"
if exists("macvim_hig_shift_movement")
" Shift + special movement key (<S-Left>, etc.) and mouse starts insert mode
set selectmode=mouse,key
set keymodel=startsel,stopsel
" HIG related shift + special movement key mappings
nn <S-D-Left> <S-Home>
vn <S-D-Left> <S-Home>
ino <S-D-Left> <S-Home>
nn <S-M-Left> <S-C-Left>
vn <S-M-Left> <S-C-Left>
ino <S-M-Left> <S-C-Left>
nn <S-D-Right> <S-End>
vn <S-D-Right> <S-End>
ino <S-D-Right> <S-End>
nn <S-M-Right> <S-C-Right>
vn <S-M-Right> <S-C-Right>
ino <S-M-Right> <S-C-Right>
nn <S-D-Up> <S-C-Home>
vn <S-D-Up> <S-C-Home>
ino <S-D-Up> <S-C-Home>
nn <S-D-Down> <S-C-End>
vn <S-D-Down> <S-C-End>
ino <S-D-Down> <S-C-End>
endif " exists("macvim_hig_shift_movement")
" Restore the previous value of 'cpoptions'.
let &cpo = s:cpo_save
unlet s:cpo_save
set transparency=10
set gfn=Monaco:h13
colorscheme molokai
let g:setting_restore = 1
let g:setting_by_vim_instance = 1
set lines=999 columns=999