Changed DiffText and Constant highlight groups
[MacVim/jjgod.git] / src / MacVim / gvimrc
blobf443bfb5a456a143153666e27e118cf1a0d0214f
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
7 " this file.
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
11 " <CR> would not be recognized.  See ":help 'cpoptions'".
12 let s:cpo_save = &cpo
13 set cpo&vim
17 " Global default options
20 if !exists("syntax_on")
21   syntax on
22 endif
27 " Extra menus
31 " File menu
33 aunmenu File.New
34 aunmenu File.Close
35 aunmenu File.-SEP4-
36 aunmenu File.Exit
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)
55 aunmenu Window
57 an <silent> 9900.300 Window.Minimize            :maca performMiniaturize:<CR>
58 an <silent> 9900.310 Window.Zoom                :maca performZoom:<CR>
59 an <silent> 9900.320 Window.Toggle\ Full\ Screen\ Mode  :set invfullscreen<CR>
60 an 9900.330 Window.-SEP1-                       <Nop>
61 " TODO! Grey out if no tabs are visible.
62 an <silent> 9900.340 Window.Previous\ Tab       :tabprevious<CR>
63 an <silent> 9900.350 Window.Next\ Tab           :tabnext<CR>
64 an 9900.360 Window.-SEP2-                       <Nop>
65 an <silent> 9900.370 Window.Bring\ All\ To\ Front :maca arrangeInFront:<CR>
70 " Toolbar
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.
78 "aunmenu ToolBar.Undo
79 "aunmenu ToolBar.Redo
80 "aunmenu ToolBar.-sep2-
81 "aunmenu ToolBar.Cut
82 "aunmenu ToolBar.Copy
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>
99 " This is so that HIG Cmd and Option movement mappings can be disabled by
100 " adding the line
101 "   let macvim_skip_cmd_opt_movement = 1
102 " to the user .vimrc
104 if !exists("macvim_skip_cmd_opt_movement")
105   no   <D-Left>       <Home>
106   no!  <D-Left>       <Home>
107   no   <M-Left>       <C-Left>
108   no!  <M-Left>       <C-Left>
110   no   <D-Right>      <End>
111   no!  <D-Right>      <End>
112   no   <M-Right>      <C-Right>
113   no!  <M-Right>      <C-Right>
115   no   <D-Up>         <C-Home>
116   ino  <D-Up>         <C-Home>
117   map  <M-Up>         {
118   imap <M-Up>         <C-o>{
120   no   <D-Down>       <C-End>
121   ino  <D-Down>       <C-End>
122   map  <M-Down>       }
123   imap <M-Down>       <C-o>}
124 endif " !exists("macvim_skip_cmd_opt_movement")
127 " This is so that the HIG shift movement related settings can be enabled by
128 " adding the line
129 "   let macvim_hig_shift_movement = 1
130 " to the user .vimrc (not .gvimrc!).
132 if exists("macvim_hig_shift_movement")
133   " Shift + special movement key (<S-Left>, etc.) and mouse starts insert mode
134   set selectmode=mouse,key
135   set keymodel=startsel,stopsel
137   " HIG related shift + special movement key mappings
138   nn   <S-D-Left>     <S-Home>
139   vn   <S-D-Left>     <S-Home>
140   ino  <S-D-Left>     <S-Home>
141   nn   <S-M-Left>     <S-C-Left>
142   vn   <S-M-Left>     <S-C-Left>
143   ino  <S-M-Left>     <S-C-Left>
145   nn   <S-D-Right>    <S-End>
146   vn   <S-D-Right>    <S-End>
147   ino  <S-D-Right>    <S-End>
148   nn   <S-M-Right>    <S-C-Right>
149   vn   <S-M-Right>    <S-C-Right>
150   ino  <S-M-Right>    <S-C-Right>
152   nn   <S-D-Up>       <S-C-Home>
153   vn   <S-D-Up>       <S-C-Home>
154   ino  <S-D-Up>       <S-C-Home>
156   nn   <S-D-Down>     <S-C-End>
157   vn   <S-D-Down>     <S-C-End>
158   ino  <S-D-Down>     <S-C-End>
159 endif " exists("macvim_hig_shift_movement")
164 " Menu key equivalents (these should always have the 'D' modifier set)
167 macmenukey File.New\ Window                       <D-n>
168 macmenukey File.New\ Tab                          <D-t>
170 macmenukey File.Open\.\.\.                        <D-o>
171 macmenukey File.Open\ Tab\.\.\.                   <D-T>
172 macmenukey File.Close\ Window                     <D-W>
173 "macmenukey File.Close\ Tab                        <D-w>
174 macmenukey File.Close                             <D-w>
175 macmenukey File.Save                              <D-s>
176 macmenukey File.Save\ As\.\.\.                    <D-S>
177 macmenukey File.Print                             <D-p>
179 macmenukey Edit.Undo                              <D-z>
180 macmenukey Edit.Redo                              <D-Z>
181 macmenukey Edit.Cut                               <D-x>
182 macmenukey Edit.Copy                              <D-c>
183 macmenukey Edit.Paste                             <D-v>
184 macmenukey Edit.Select\ All                       <D-a>
185 macmenukey Edit.Special\ Characters\.\.\.         <D-M-t> 
186 macmenukey Edit.Font.Bigger                       <D-=>
187 macmenukey Edit.Font.Smaller                      <D-->
189 macmenukey Tools.Spelling.To\ Next\ error         <D-;>
190 macmenukey Tools.Spelling.Suggest\ Corrections    <D-:>
191 macmenukey Tools.Make                             <D-b>
192 macmenukey Tools.List\ Errors                     <D-l>
193 macmenukey Tools.List\ Messages                   <D-L>
194 macmenukey Tools.Next\ Error                      <D-C-Right>
195 macmenukey Tools.Previous\ Error                  <D-C-Left>
196 macmenukey Tools.Older\ List                      <D-C-Up>
197 macmenukey Tools.Newer\ List                      <D-C-Down>
199 macmenukey Window.Minimize                        <D-m>
200 macmenukey Window.Toggle\ Full\ Screen\ Mode      <D-F>
201 macmenukey Window.Previous\ Tab                   <D-{>
202 macmenukey Window.Next\ Tab                       <D-}>
205 " Restore the previous value of 'cpoptions'.
206 let &cpo = s:cpo_save
207 unlet s:cpo_save