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")
37 aunmenu File.Save-Exit
39 an <silent> 10.290 File.New\ Window :maca newWindow:<CR>
40 an 10.295 File.New\ Tab :tabnew<CR>
41 an 10.328 File.-SEP0- <Nop>
42 an <silent> 10.330 File.Close\ Window<Tab>:qa :confirm qa<CR>
43 an 10.331 File.Close<Tab>:q :confirm q<CR>
44 "an 10.331 File.Close\ Tab :tabclose<CR>
46 an 20.460 Edit.-SEP4- <Nop>
47 an 20.465.10 Edit.Font.Show\ Fonts :maca orderFrontFontPanel:<CR>
48 an 20.465.20 Edit.Font.-SEP5- <Nop>
49 an 20.465.30 Edit.Font.Bigger :maca fontSizeUp:<CR>
50 an 20.465.40 Edit.Font.Smaller :maca fontSizeDown:<CR>
51 an 20.470 Edit.Special\ Characters\.\.\. :maca orderFrontCharacterPalette:<CR>
54 " Window menu (should be next to Help so give it a high priority)
57 an <silent> 9900.300 Window.Minimize :maca performMiniaturize:<CR>
58 an <silent> 9900.310 Window.Zoom :maca performZoom:<CR>
59 an 9900.320 Window.-SEP1- <Nop>
60 " TODO! Grey out if no tabs are visible.
61 an <silent> 9900.330 Window.Previous\ Tab :tabprevious<CR>
62 an <silent> 9900.340 Window.Next\ Tab :tabnext<CR>
63 an 9900.350 Window.-SEP2- <Nop>
64 an 9900.360 Window.Enter\ Fullscreen :set fu<CR>
65 an 9900.370 Window.Leave\ Fullscreen :set nofu<CR>
66 an 9900.380 Window.-SEP3- <Nop>
67 an <silent> 9900.390 Window.Bring\ All\ To\ Front :maca 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>
101 " This is so that HIG Cmd and Option movement mappings can be disabled by
103 " let macvim_skip_cmd_opt_movement = 1
106 if !exists("macvim_skip_cmd_opt_movement")
110 no! <M-Left> <C-Left>
114 no <M-Right> <C-Right>
115 no! <M-Right> <C-Right>
126 endif " !exists("macvim_skip_cmd_opt_movement")
129 " This is so that the HIG shift movement related settings can be enabled by
131 " let macvim_hig_shift_movement = 1
132 " to the user .vimrc (not .gvimrc!).
134 if exists("macvim_hig_shift_movement")
135 " Shift + special movement key (<S-Left>, etc.) and mouse starts insert mode
136 set selectmode=mouse,key
137 set keymodel=startsel,stopsel
139 " HIG related shift + special movement key mappings
140 nn <S-D-Left> <S-Home>
141 vn <S-D-Left> <S-Home>
142 ino <S-D-Left> <S-Home>
143 nn <S-M-Left> <S-C-Left>
144 vn <S-M-Left> <S-C-Left>
145 ino <S-M-Left> <S-C-Left>
147 nn <S-D-Right> <S-End>
148 vn <S-D-Right> <S-End>
149 ino <S-D-Right> <S-End>
150 nn <S-M-Right> <S-C-Right>
151 vn <S-M-Right> <S-C-Right>
152 ino <S-M-Right> <S-C-Right>
154 nn <S-D-Up> <S-C-Home>
155 vn <S-D-Up> <S-C-Home>
156 ino <S-D-Up> <S-C-Home>
158 nn <S-D-Down> <S-C-End>
159 vn <S-D-Down> <S-C-End>
160 ino <S-D-Down> <S-C-End>
161 endif " exists("macvim_hig_shift_movement")
166 " Menu key equivalents (these should always have the 'D' modifier set)
169 macmenukey File.New\ Window <D-n>
170 macmenukey File.New\ Tab <D-t>
172 macmenukey File.Open\.\.\. <D-o>
173 macmenukey File.Open\ Tab\.\.\. <D-T>
174 macmenukey File.Close\ Window <D-W>
175 "macmenukey File.Close\ Tab <D-w>
176 macmenukey File.Close <D-w>
177 macmenukey File.Save <D-s>
178 macmenukey File.Save\ As\.\.\. <D-S>
179 macmenukey File.Print <D-p>
181 macmenukey Edit.Undo <D-z>
182 macmenukey Edit.Redo <D-Z>
183 macmenukey Edit.Cut <D-x>
184 macmenukey Edit.Copy <D-c>
185 macmenukey Edit.Paste <D-v>
186 macmenukey Edit.Select\ All <D-a>
187 macmenukey Edit.Special\ Characters\.\.\. <D-M-t>
188 macmenukey Edit.Font.Bigger <D-=>
189 macmenukey Edit.Font.Smaller <D-->
191 macmenukey Tools.Spelling.To\ Next\ error <D-;>
192 macmenukey Tools.Spelling.Suggest\ Corrections <D-:>
193 macmenukey Tools.Make <D-b>
194 macmenukey Tools.List\ Errors <D-l>
195 macmenukey Tools.List\ Messages <D-L>
196 macmenukey Tools.Next\ Error <D-C-Right>
197 macmenukey Tools.Previous\ Error <D-C-Left>
198 macmenukey Tools.Older\ List <D-C-Up>
199 macmenukey Tools.Newer\ List <D-C-Down>
201 macmenukey Window.Minimize <D-m>
202 macmenukey Window.Previous\ Tab <D-{>
203 macmenukey Window.Next\ Tab <D-}>
204 macmenukey Window.Enter\ Fullscreen <D-Enter>
205 macmenukey Window.Leave\ Fullscreen <D-S-Enter>
208 " Restore the previous value of 'cpoptions'.
209 let &cpo = s:cpo_save