1 " System gvimrc file for MacVim
3 " Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com>
4 " Last Change: Mon Sep 30 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 " TODO: Move to the source code instead.
40 aunmenu File.Save-Exit
42 an <silent> 10.290 File.New\ Window :action newWindow:<CR>
43 an 10.295 File.New\ Tab :tabnew<CR>
44 an 10.328 File.-SEP0- <Nop>
45 an <silent> 10.330 File.Close\ Window<Tab>:qa :confirm qa<CR>
46 an 10.331 File.Close<Tab>:q :confirm q<CR>
47 "an 10.331 File.Close\ Tab :tabclose<CR>
49 an 20.460 Edit.-SEP4- <Nop>
50 an 20.465.10 Edit.Font.Show\ Fonts :action orderFrontFontPanel:<CR>
51 an 20.465.20 Edit.Font.-SEP5- <Nop>
52 an 20.465.30 Edit.Font.Bigger :action fontSizeUp:<CR>
53 an 20.465.40 Edit.Font.Smaller :action fontSizeDown:<CR>
54 an 20.470 Edit.Special\ Characters\.\.\. :action orderFrontCharacterPalette:<CR>
60 an <silent> 70.300 Window.Minimize :action performMiniaturize:<CR>
61 an <silent> 70.310 Window.Zoom :action performZoom:<CR>
62 an 70.320 Window.-SEP1- <Nop>
63 " TODO! Grey out if no tabs are visible.
64 an <silent> 70.330 Window.Previous\ Tab :tabprevious<CR>
65 an <silent> 70.340 Window.Next\ Tab :tabnext<CR>
66 an 70.350 Window.-SEP2- <Nop>
67 an <silent> 70.360 Window.Bring\ All\ To\ Front :action arrangeInFront:<CR>
74 " These items are special ('*' means zero or more arbitrary characters):
75 " -space*- an empty space
76 " -flexspace*- a flexible space
77 " -*- a separator item
79 " Remove some items so that all items are visible at the default window size.
82 "aunmenu ToolBar.-sep2-
85 "aunmenu ToolBar.Paste
86 "aunmenu ToolBar.-sep3-
87 aunmenu ToolBar.Replace
88 aunmenu ToolBar.FindNext
89 aunmenu ToolBar.FindPrev
90 aunmenu ToolBar.-sep5-
91 aunmenu ToolBar.-sep6-
92 aunmenu ToolBar.RunCtags
93 aunmenu ToolBar.TagJump
94 "aunmenu ToolBar.-sep7-
95 aunmenu ToolBar.FindHelp
97 "an 1.295 ToolBar.-flexspace7- <Nop>
102 " HIG insertion point related mappings
108 no! <M-Left> <C-Left>
112 no <M-Right> <C-Right>
113 no! <M-Right> <C-Right>
126 " This is so that the HIG shift movement related settings can be enabled by
128 " let macvim_hig_shift_movement = 1
129 " to the user .vimrc (not .gvimrc!).
131 if exists("macvim_hig_shift_movement")
132 " Shift + special movement key (<S-Left>, etc.) and mouse starts insert mode
133 set selectmode=mouse,key
134 set keymodel=startsel,stopsel
136 " HIG related shift + special movement key mappings
137 nn <S-D-Left> <S-Home>
138 vn <S-D-Left> <S-Home>
139 ino <S-D-Left> <S-Home>
140 nn <S-M-Left> <S-C-Left>
141 vn <S-M-Left> <S-C-Left>
142 ino <S-M-Left> <S-C-Left>
144 nn <S-D-Right> <S-End>
145 vn <S-D-Right> <S-End>
146 ino <S-D-Right> <S-End>
147 nn <S-M-Right> <S-C-Right>
148 vn <S-M-Right> <S-C-Right>
149 ino <S-M-Right> <S-C-Right>
151 nn <S-D-Up> <S-C-Home>
152 vn <S-D-Up> <S-C-Home>
153 ino <S-D-Up> <S-C-Home>
155 nn <S-D-Down> <S-C-End>
156 vn <S-D-Down> <S-C-End>
157 ino <S-D-Down> <S-C-End>
158 endif " !exists("macvim_skip_hig_shift_movement")
163 " Menu key equivalents (these should always have the 'D' modifier set)
166 menukeyequiv File.New\ Window <D-n>
167 menukeyequiv File.New\ Tab <D-t>
169 menukeyequiv File.Open\.\.\. <D-o>
170 menukeyequiv File.Open\ Tab\.\.\. <D-T>
171 menukeyequiv File.Close\ Window <D-W>
172 "menukeyequiv File.Close\ Tab <D-w>
173 menukeyequiv File.Close <D-w>
174 menukeyequiv File.Save <D-s>
175 menukeyequiv File.Save\ As\.\.\. <D-S>
176 menukeyequiv File.Print <D-p>
178 menukeyequiv Edit.Undo <D-z>
179 menukeyequiv Edit.Redo <D-Z>
180 menukeyequiv Edit.Cut <D-x>
181 menukeyequiv Edit.Copy <D-c>
182 menukeyequiv Edit.Paste <D-v>
183 menukeyequiv Edit.Select\ All <D-a>
184 menukeyequiv Edit.Special\ Characters\.\.\. <D-M-t>
185 menukeyequiv Edit.Font.Bigger <D-=>
186 menukeyequiv Edit.Font.Smaller <D-->
188 menukeyequiv Tools.Spelling.To\ Next\ error <D-;>
189 menukeyequiv Tools.Spelling.Suggest\ Corrections <D-:>
190 menukeyequiv Tools.Make <D-b>
191 menukeyequiv Tools.List\ Errors <D-l>
192 menukeyequiv Tools.List\ Messages <D-L>
193 menukeyequiv Tools.Next\ Error <D-C-Right>
194 menukeyequiv Tools.Previous\ Error <D-C-Left>
195 menukeyequiv Tools.Older\ List <D-C-Up>
196 menukeyequiv Tools.Newer\ List <D-C-Down>
198 menukeyequiv Window.Minimize <D-m>
199 menukeyequiv Window.Previous\ Tab <D-{>
200 menukeyequiv Window.Next\ Tab <D-}>
203 " Restore the previous value of 'cpoptions'.
204 let &cpo = s:cpo_save