| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | " System gvimrc file for Mac OS X | 
					
						
							| 
									
										
										
										
											2006-04-30 18:54:39 +00:00
										 |  |  | " Author:	Benji Fisher <benji@member.AMS.org> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | " Last Change: Thu Mar 09 09:00 AM 2006 EST | 
					
						
							|  |  |  | " | 
					
						
							|  |  |  | " Define Mac-standard keyboard shortcuts. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | " We don't change 'cpoptions' here, because it would not be set properly when | 
					
						
							|  |  |  | " a .vimrc file is found later.  Thus don't use line continuation and use | 
					
						
							|  |  |  | " <special> in mappings. | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <special> <D-n> :confirm enew<CR> | 
					
						
							|  |  |  | vmap <special> <D-n> <Esc><D-n>gv | 
					
						
							|  |  |  | imap <special> <D-n> <C-O><D-n> | 
					
						
							|  |  |  | cmap <special> <D-n> <C-C><D-n> | 
					
						
							|  |  |  | omap <special> <D-n> <Esc><D-n> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <special> <D-o> :browse confirm e<CR> | 
					
						
							|  |  |  | vmap <special> <D-o> <Esc><D-o>gv | 
					
						
							|  |  |  | imap <special> <D-o> <C-O><D-o> | 
					
						
							|  |  |  | cmap <special> <D-o> <C-C><D-o> | 
					
						
							|  |  |  | omap <special> <D-o> <Esc><D-o> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <silent> <special> <D-w> :if winheight(2) < 0 <Bar> confirm enew <Bar> else <Bar> confirm close <Bar> endif<CR> | 
					
						
							|  |  |  | vmap <special> <D-w> <Esc><D-w>gv | 
					
						
							|  |  |  | imap <special> <D-w> <C-O><D-w> | 
					
						
							|  |  |  | cmap <special> <D-w> <C-C><D-w> | 
					
						
							|  |  |  | omap <special> <D-w> <Esc><D-w> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <silent> <special> <D-s> :if expand("%") == ""<Bar>browse confirm w<Bar> else<Bar>confirm w<Bar>endif<CR> | 
					
						
							|  |  |  | vmap <special> <D-s> <Esc><D-s>gv | 
					
						
							|  |  |  | imap <special> <D-s> <C-O><D-s> | 
					
						
							|  |  |  | cmap <special> <D-s> <C-C><D-s> | 
					
						
							|  |  |  | omap <special> <D-s> <Esc><D-s> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <special> <D-S-s> :browse confirm saveas<CR> | 
					
						
							|  |  |  | vmap <special> <D-S-s> <Esc><D-s>gv | 
					
						
							|  |  |  | imap <special> <D-S-s> <C-O><D-s> | 
					
						
							|  |  |  | cmap <special> <D-S-s> <C-C><D-s> | 
					
						
							|  |  |  | omap <special> <D-S-s> <Esc><D-s> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " From the Edit menu of SimpleText: | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <special> <D-z> u | 
					
						
							|  |  |  | vmap <special> <D-z> <Esc><D-z>gv | 
					
						
							|  |  |  | imap <special> <D-z> <C-O><D-z> | 
					
						
							|  |  |  | cmap <special> <D-z> <C-C><D-z> | 
					
						
							|  |  |  | omap <special> <D-z> <Esc><D-z> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | vnoremap <special> <D-x> "+x | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | vnoremap <special> <D-c> "+y | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | cnoremap <special> <D-c> <C-Y> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <special> <D-v> "+gP | 
					
						
							|  |  |  | cnoremap <special> <D-v> <C-R>+ | 
					
						
							|  |  |  | execute 'vnoremap <script> <special> <D-v>' paste#paste_cmd['v'] | 
					
						
							|  |  |  | execute 'inoremap <script> <special> <D-v>' paste#paste_cmd['i'] | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <silent> <special> <D-a> :if &slm != ""<Bar>exe ":norm gggH<C-O>G"<Bar> else<Bar>exe ":norm ggVG"<Bar>endif<CR> | 
					
						
							|  |  |  | vmap <special> <D-a> <Esc><D-a> | 
					
						
							|  |  |  | imap <special> <D-a> <Esc><D-a> | 
					
						
							|  |  |  | cmap <special> <D-a> <C-C><D-a> | 
					
						
							|  |  |  | omap <special> <D-a> <Esc><D-a> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <special> <D-f> / | 
					
						
							|  |  |  | vmap <special> <D-f> <Esc><D-f> | 
					
						
							|  |  |  | imap <special> <D-f> <Esc><D-f> | 
					
						
							|  |  |  | cmap <special> <D-f> <C-C><D-f> | 
					
						
							|  |  |  | omap <special> <D-f> <Esc><D-f> | 
					
						
							| 
									
										
										
										
											2006-03-09 22:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-05-03 21:26:49 +00:00
										 |  |  | nnoremap <special> <D-g> n | 
					
						
							|  |  |  | vmap <special> <D-g> <Esc><D-g> | 
					
						
							|  |  |  | imap <special> <D-g> <C-O><D-g> | 
					
						
							|  |  |  | cmap <special> <D-g> <C-C><D-g> | 
					
						
							|  |  |  | omap <special> <D-g> <Esc><D-g> |