1 " System gvimrc file for MacVim
3 " Maintainer: Björn Winckler <bjorn.winckler@gmail.com>
4 " Last Change: Mon Sep 17 2007
6 " This is a work in progress. If you feel so inclined, please help me improve
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
11 " <CR> would not be recognized. See ":help 'cpoptions'".
17 " Global default options
20 if !exists("syntax_on")
24 " Change selection color on focus change (disabled until I can figure out how
25 " to restore the last value for Visual on FocusGained)
26 "au FocusLost * hi Visual guibg=MacSecondarySelectedControlColor
27 "au FocusGained * hi Visual guibg=MacSelectedTextBackgroundColor
41 aunmenu File.Save-Exit
43 an <silent> 10.290 File.New\ Window :action newWindow:<CR>
44 an 10.295 File.New\ Tab :tabnew<CR>
45 an 10.328 File.-SEP0- <Nop>
46 an <silent> 10.330 File.Close\ Window<Tab>:qa :confirm qa<CR>
47 an 10.331 File.Close<Tab>:q :confirm q<CR>
48 "an 10.331 File.Close\ Tab :tabclose<CR>
50 an 20.460 Edit.-SEP4- <Nop>
51 an 20.465 Edit.Show\ Fonts\.\.\. :action orderFrontFontPanel:<CR>
52 an 20.470 Edit.Special\ Characters\.\.\. :action orderFrontCharacterPalette:<CR>
58 an <silent> 70.300 Window.Minimize :action performMiniaturize:<CR>
59 an <silent> 70.310 Window.Zoom :action performZoom:<CR>
60 an 70.320 Window.-SEP1- <Nop>
61 " TODO! Grey out if no tabs are visible.
62 an <silent> 70.330 Window.Previous\ Tab :tabprevious<CR>
63 an <silent> 70.340 Window.Next\ Tab :tabnext<CR>
64 an 70.350 Window.-SEP2- <Nop>
65 an <silent> 70.360 Window.Bring\ All\ To\ Front :action arrangeInFront:<CR>
72 " These items are special ('*' means zero or more arbitrary characters):
73 " -space*- an empty space
74 " -flexspace*- a flexible space
75 " -*- a separator item
77 " Remove some items so that all items are visible at the default window size.
80 "aunmenu ToolBar.-sep2-
83 "aunmenu ToolBar.Paste
84 "aunmenu ToolBar.-sep3-
85 aunmenu ToolBar.Replace
86 aunmenu ToolBar.FindNext
87 aunmenu ToolBar.FindPrev
88 aunmenu ToolBar.-sep5-
89 aunmenu ToolBar.-sep6-
90 aunmenu ToolBar.RunCtags
91 aunmenu ToolBar.TagJump
92 "aunmenu ToolBar.-sep7-
93 aunmenu ToolBar.FindHelp
95 "an 1.295 ToolBar.-flexspace7- <Nop>
100 " HIG insertion point related mappings
106 no! <M-Left> <C-Left>
110 no <M-Right> <C-Right>
111 no! <M-Right> <C-Right>
124 " This is so that the HIG shift movement related settings can be enabled by
126 " let macvim_hig_shift_movement = 1
127 " to the user .vimrc (not .gvimrc!).
129 if exists("macvim_hig_shift_movement")
130 " Shift + special movement key (<S-Left>, etc.) and mouse starts insert mode
131 set selectmode=mouse,key
132 set keymodel=startsel,stopsel
134 " HIG related shift + special movement key mappings
135 nn <S-D-Left> <S-Home>
136 vn <S-D-Left> <S-Home>
137 ino <S-D-Left> <S-Home>
138 nn <S-M-Left> <S-C-Left>
139 vn <S-M-Left> <S-C-Left>
140 ino <S-M-Left> <S-C-Left>
142 nn <S-D-Right> <S-End>
143 vn <S-D-Right> <S-End>
144 ino <S-D-Right> <S-End>
145 nn <S-M-Right> <S-C-Right>
146 vn <S-M-Right> <S-C-Right>
147 ino <S-M-Right> <S-C-Right>
149 nn <S-D-Up> <S-C-Home>
150 vn <S-D-Up> <S-C-Home>
151 ino <S-D-Up> <S-C-Home>
153 nn <S-D-Down> <S-C-End>
154 vn <S-D-Down> <S-C-End>
155 ino <S-D-Down> <S-C-End>
156 endif " !exists("macvim_skip_hig_shift_movement")
161 " Menu key equivalents (these should always have the 'D' modifier set)
164 menukeyequiv File.New\ Window <D-n>
165 menukeyequiv File.New\ Tab <D-t>
167 menukeyequiv File.Open\.\.\. <D-o>
168 menukeyequiv File.Open\ Tab\.\.\. <D-T>
169 menukeyequiv File.Close\ Window <D-W>
170 "menukeyequiv File.Close\ Tab <D-w>
171 menukeyequiv File.Close <D-w>
172 menukeyequiv File.Save <D-s>
173 menukeyequiv File.Save\ As\.\.\. <D-S>
174 menukeyequiv File.Print <D-p>
176 menukeyequiv Edit.Undo <D-z>
177 menukeyequiv Edit.Redo <D-Z>
178 menukeyequiv Edit.Cut <D-x>
179 menukeyequiv Edit.Copy <D-c>
180 menukeyequiv Edit.Paste <D-v>
181 menukeyequiv Edit.Select\ All <D-a>
182 menukeyequiv Edit.Special\ Characters\.\.\. <D-M-t>
184 menukeyequiv Tools.Spelling.To\ Next\ error <D-;>
185 menukeyequiv Tools.Spelling.Suggest\ Corrections <D-:>
186 menukeyequiv Tools.Make <D-b>
187 menukeyequiv Tools.List\ Errors <D-l>
188 menukeyequiv Tools.List\ Messages <D-L>
189 menukeyequiv Tools.Next\ Error <D-C-Right>
190 menukeyequiv Tools.Previous\ Error <D-C-Left>
191 menukeyequiv Tools.Older\ List <D-C-Up>
192 menukeyequiv Tools.Newer\ List <D-C-Down>
194 menukeyequiv Window.Minimize <D-m>
195 menukeyequiv Window.Previous\ Tab <D-{>
196 menukeyequiv Window.Next\ Tab <D-}>
199 " Restore the previous value of 'cpoptions'.
200 let &cpo = s:cpo_save