Convert NSAttributedString to NSString in insertText:
[MacVim/jjgod.git] / gvimrc
blob513a41f0b392af5c3d4ce03a1d1b31c71d890164
1 " System gvimrc file for MacVim
3 " Maintainer:   Björn Winckler <bjorn.winckler@gmail.com>
4 " Last Change:  Wed Aug 29 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
24 " Shift + special movement key starts visual mode (<S-Left>, etc.)
25 set keymodel=startsel
29 " Extra menus
33 " File menu
35 aunmenu File.New
36 aunmenu File.Close
37 aunmenu File.-SEP4-
38 aunmenu File.Exit
39 aunmenu File.Save-Exit
41 an <silent> 10.290 File.New\ Window             :action newVimWindow:<CR>
42 an  10.295 File.New\ Tab                        :tabnew<CR>
43 an 10.328 File.-SEP0-                           <Nop>
44 an <silent> 10.330 File.Close\ Window<Tab>:qa   :confirm qa<CR>
45 an 10.331 File.Close<Tab>:q                     :confirm q<CR>
46 "an 10.331 File.Close\ Tab                   :tabclose<CR>
48 an 20.460 Edit.-SEP4-                       <Nop>
49 an 20.465 Edit.Show\ Fonts\.\.\.            :action orderFrontFontPanel:<CR>
50 an 20.470 Edit.Special\ Characters\.\.\.    :action orderFrontCharacterPalette:<CR>
53 " Window menu
54 aunmenu Window
56 an <silent> 70.300 Window.Minimize          :action performMiniaturize:<CR>
57 an <silent> 70.310 Window.Zoom              :action performZoom:<CR>
58 an 70.320 Window.-SEP1-                     <Nop>
59 " TODO! Grey out if no tabs are visible.
60 an <silent> 70.330 Window.Previous\ Tab     :tabprevious<CR>
61 an <silent> 70.340 Window.Next\ Tab         :tabnext<CR>
62 an 70.350 Window.-SEP2-                     <Nop>
63 an <silent> 70.360 Window.Bring\ All\ To\ Front :action arrangeInFront:<CR>
68 " Toolbar
70 " These items are special ('*' means zero or more arbitrary characters):
71 "   -space*-        an empty space
72 "   -flexspace*-    a flexible space
73 "   -*-             a separator item
75 " Remove some items so that all items are visible at the default window size.
76 "aunmenu ToolBar.Undo
77 "aunmenu ToolBar.Redo
78 "aunmenu ToolBar.-sep2-
79 "aunmenu ToolBar.Cut
80 "aunmenu ToolBar.Copy
81 "aunmenu ToolBar.Paste
82 "aunmenu ToolBar.-sep3-
83 aunmenu ToolBar.Replace
84 aunmenu ToolBar.FindNext
85 aunmenu ToolBar.FindPrev
86 aunmenu ToolBar.-sep5-
87 aunmenu ToolBar.-sep6-
88 aunmenu ToolBar.RunCtags
89 aunmenu ToolBar.TagJump
90 "aunmenu ToolBar.-sep7-
91 aunmenu ToolBar.FindHelp
93 "an 1.295 ToolBar.-flexspace7-   <Nop>
98 " HIG insertion point related mappings
101 no   <D-Left>       <Home>
102 no!  <D-Left>       <Home>
103 no   <M-Left>       <C-Left>
104 no!  <M-Left>       <C-Left>
105 nn   <S-D-Left>     <S-Home>
106 vn   <S-D-Left>     <S-Home>
107 ino  <S-D-Left>     <S-Home>
108 nn   <S-M-Left>     <S-C-Left>
109 vn   <S-M-Left>     <S-C-Left>
110 ino  <S-M-Left>     <S-C-Left>
112 no   <D-Right>      <End>
113 no!  <D-Right>      <End>
114 no   <M-Right>      <C-Right>
115 no!  <M-Right>      <C-Right>
116 nn   <S-D-Right>    <S-End>
117 vn   <S-D-Right>    <S-End>
118 ino  <S-D-Right>    <S-End>
119 nn   <S-M-Right>    <S-C-Right>
120 vn   <S-M-Right>    <S-C-Right>
121 ino  <S-M-Right>    <S-C-Right>
123 no   <D-Up>         <C-Home>
124 ino  <D-Up>         <C-Home>
125 map  <M-Up>         {
126 imap <M-Up>         <C-o>{
127 nn   <S-D-Up>       <S-C-Home>
128 vn   <S-D-Up>       <S-C-Home>
129 ino  <S-D-Up>       <S-C-Home>
131 no   <D-Down>       <C-End>
132 ino  <D-Down>       <C-End>
133 map  <M-Down>       }
134 imap <M-Down>       <C-o>}
135 nn   <S-D-Down>     <S-C-End>
136 vn   <S-D-Down>     <S-C-End>
137 ino  <S-D-Down>     <S-C-End>
143 " Menu key equivalents (these should always have the 'D' modifier set)
146 menukeyequiv File.New\ Window                       <D-n>
147 menukeyequiv File.New\ Tab                          <D-t>
149 menukeyequiv File.Open\.\.\.                        <D-o>
150 menukeyequiv File.Open\ Tab\.\.\.                   <D-T>
151 menukeyequiv File.Close\ Window                     <D-W>
152 "menukeyequiv File.Close\ Tab                        <D-w>
153 menukeyequiv File.Close                             <D-w>
154 menukeyequiv File.Save                              <D-s>
155 menukeyequiv File.Save\ As\.\.\.                    <D-S>
156 menukeyequiv File.Print                             <D-p>
158 menukeyequiv Edit.Undo                              <D-z>
159 menukeyequiv Edit.Redo                              <D-Z>
160 menukeyequiv Edit.Cut                               <D-x>
161 menukeyequiv Edit.Copy                              <D-c>
162 menukeyequiv Edit.Paste                             <D-v>
163 menukeyequiv Edit.Select\ All                       <D-a>
164 menukeyequiv Edit.Special\ Characters\.\.\.         <D-M-t> 
166 menukeyequiv Tools.Spelling.To\ Next\ error         <D-;>
167 menukeyequiv Tools.Spelling.Suggest\ Corrections    <D-:>
168 menukeyequiv Tools.Make                             <D-b>
169 menukeyequiv Tools.List\ Errors                     <D-l>
170 menukeyequiv Tools.List\ Messages                   <D-L>
171 menukeyequiv Tools.Next\ Error                      <D-C-Right>
172 menukeyequiv Tools.Previous\ Error                  <D-C-Left>
173 menukeyequiv Tools.Older\ List                      <D-C-Up>
174 menukeyequiv Tools.Newer\ List                      <D-C-Down>
176 menukeyequiv Window.Minimize                        <D-m>
177 menukeyequiv Window.Previous\ Tab                   <D-[>
178 menukeyequiv Window.Next\ Tab                       <D-]>
181 " Restore the previous value of 'cpoptions'.
182 let &cpo = s:cpo_save
183 unlet s:cpo_save