Mercurial > vim
comparison runtime/macmap.vim @ 859:99305c4c42d4
updated for version 7.0g02
author | vimboss |
---|---|
date | Wed, 03 May 2006 21:26:49 +0000 |
parents | 8cd729851562 |
children |
comparison
equal
deleted
inserted
replaced
858:ca82de29ac19 | 859:99305c4c42d4 |
---|---|
2 " Author: Benji Fisher <benji@member.AMS.org> | 2 " Author: Benji Fisher <benji@member.AMS.org> |
3 " Last Change: Thu Mar 09 09:00 AM 2006 EST | 3 " Last Change: Thu Mar 09 09:00 AM 2006 EST |
4 " | 4 " |
5 " Define Mac-standard keyboard shortcuts. | 5 " Define Mac-standard keyboard shortcuts. |
6 | 6 |
7 " Save and restore compatible mode. | 7 " We don't change 'cpoptions' here, because it would not be set properly when |
8 let s:save_cpo = &cpo | 8 " a .vimrc file is found later. Thus don't use line continuation and use |
9 set cpo&vim | 9 " <special> in mappings. |
10 | 10 |
11 nnoremap <D-n> :confirm enew<CR> | 11 nnoremap <special> <D-n> :confirm enew<CR> |
12 vmap <D-n> <Esc><D-n>gv | 12 vmap <special> <D-n> <Esc><D-n>gv |
13 imap <D-n> <C-O><D-n> | 13 imap <special> <D-n> <C-O><D-n> |
14 cmap <D-n> <C-C><D-n> | 14 cmap <special> <D-n> <C-C><D-n> |
15 omap <D-n> <Esc><D-n> | 15 omap <special> <D-n> <Esc><D-n> |
16 | 16 |
17 nnoremap <D-o> :browse confirm e<CR> | 17 nnoremap <special> <D-o> :browse confirm e<CR> |
18 vmap <D-o> <Esc><D-o>gv | 18 vmap <special> <D-o> <Esc><D-o>gv |
19 imap <D-o> <C-O><D-o> | 19 imap <special> <D-o> <C-O><D-o> |
20 cmap <D-o> <C-C><D-o> | 20 cmap <special> <D-o> <C-C><D-o> |
21 omap <D-o> <Esc><D-o> | 21 omap <special> <D-o> <Esc><D-o> |
22 | 22 |
23 nnoremap <silent> <D-w> :if winheight(2) < 0 <Bar> | 23 nnoremap <silent> <special> <D-w> :if winheight(2) < 0 <Bar> confirm enew <Bar> else <Bar> confirm close <Bar> endif<CR> |
24 \ confirm enew <Bar> | 24 vmap <special> <D-w> <Esc><D-w>gv |
25 \ else <Bar> | 25 imap <special> <D-w> <C-O><D-w> |
26 \ confirm close <Bar> | 26 cmap <special> <D-w> <C-C><D-w> |
27 \ endif<CR> | 27 omap <special> <D-w> <Esc><D-w> |
28 vmap <D-w> <Esc><D-w>gv | |
29 imap <D-w> <C-O><D-w> | |
30 cmap <D-w> <C-C><D-w> | |
31 omap <D-w> <Esc><D-w> | |
32 | 28 |
33 nnoremap <silent> <D-s> :if expand("%") == ""<Bar>browse confirm w<Bar> | 29 nnoremap <silent> <special> <D-s> :if expand("%") == ""<Bar>browse confirm w<Bar> else<Bar>confirm w<Bar>endif<CR> |
34 \ else<Bar>confirm w<Bar>endif<CR> | 30 vmap <special> <D-s> <Esc><D-s>gv |
35 vmap <D-s> <Esc><D-s>gv | 31 imap <special> <D-s> <C-O><D-s> |
36 imap <D-s> <C-O><D-s> | 32 cmap <special> <D-s> <C-C><D-s> |
37 cmap <D-s> <C-C><D-s> | 33 omap <special> <D-s> <Esc><D-s> |
38 omap <D-s> <Esc><D-s> | |
39 | 34 |
40 nnoremap <D-S-s> :browse confirm saveas<CR> | 35 nnoremap <special> <D-S-s> :browse confirm saveas<CR> |
41 vmap <D-S-s> <Esc><D-s>gv | 36 vmap <special> <D-S-s> <Esc><D-s>gv |
42 imap <D-S-s> <C-O><D-s> | 37 imap <special> <D-S-s> <C-O><D-s> |
43 cmap <D-S-s> <C-C><D-s> | 38 cmap <special> <D-S-s> <C-C><D-s> |
44 omap <D-S-s> <Esc><D-s> | 39 omap <special> <D-S-s> <Esc><D-s> |
45 | 40 |
46 " From the Edit menu of SimpleText: | 41 " From the Edit menu of SimpleText: |
47 nnoremap <D-z> u | 42 nnoremap <special> <D-z> u |
48 vmap <D-z> <Esc><D-z>gv | 43 vmap <special> <D-z> <Esc><D-z>gv |
49 imap <D-z> <C-O><D-z> | 44 imap <special> <D-z> <C-O><D-z> |
50 cmap <D-z> <C-C><D-z> | 45 cmap <special> <D-z> <C-C><D-z> |
51 omap <D-z> <Esc><D-z> | 46 omap <special> <D-z> <Esc><D-z> |
52 | 47 |
53 vnoremap <D-x> "+x | 48 vnoremap <special> <D-x> "+x |
54 | 49 |
55 vnoremap <D-c> "+y | 50 vnoremap <special> <D-c> "+y |
56 | 51 |
57 cnoremap <D-c> <C-Y> | 52 cnoremap <special> <D-c> <C-Y> |
58 | 53 |
59 nnoremap <D-v> "+gP | 54 nnoremap <special> <D-v> "+gP |
60 cnoremap <D-v> <C-R>+ | 55 cnoremap <special> <D-v> <C-R>+ |
61 execute 'vnoremap <script> <D-v>' paste#paste_cmd['v'] | 56 execute 'vnoremap <script> <special> <D-v>' paste#paste_cmd['v'] |
62 execute 'inoremap <script> <D-v>' paste#paste_cmd['i'] | 57 execute 'inoremap <script> <special> <D-v>' paste#paste_cmd['i'] |
63 | 58 |
64 nnoremap <silent> <D-a> :if &slm != ""<Bar>exe ":norm gggH<C-O>G"<Bar> | 59 nnoremap <silent> <special> <D-a> :if &slm != ""<Bar>exe ":norm gggH<C-O>G"<Bar> else<Bar>exe ":norm ggVG"<Bar>endif<CR> |
65 \ else<Bar>exe ":norm ggVG"<Bar>endif<CR> | 60 vmap <special> <D-a> <Esc><D-a> |
66 vmap <D-a> <Esc><D-a> | 61 imap <special> <D-a> <Esc><D-a> |
67 imap <D-a> <Esc><D-a> | 62 cmap <special> <D-a> <C-C><D-a> |
68 cmap <D-a> <C-C><D-a> | 63 omap <special> <D-a> <Esc><D-a> |
69 omap <D-a> <Esc><D-a> | |
70 | 64 |
71 nnoremap <D-f> / | 65 nnoremap <special> <D-f> / |
72 vmap <D-f> <Esc><D-f> | 66 vmap <special> <D-f> <Esc><D-f> |
73 imap <D-f> <Esc><D-f> | 67 imap <special> <D-f> <Esc><D-f> |
74 cmap <D-f> <C-C><D-f> | 68 cmap <special> <D-f> <C-C><D-f> |
75 omap <D-f> <Esc><D-f> | 69 omap <special> <D-f> <Esc><D-f> |
76 | 70 |
77 nnoremap <D-g> n | 71 nnoremap <special> <D-g> n |
78 vmap <D-g> <Esc><D-g> | 72 vmap <special> <D-g> <Esc><D-g> |
79 imap <D-g> <C-O><D-g> | 73 imap <special> <D-g> <C-O><D-g> |
80 cmap <D-g> <C-C><D-g> | 74 cmap <special> <D-g> <C-C><D-g> |
81 omap <D-g> <Esc><D-g> | 75 omap <special> <D-g> <Esc><D-g> |
82 | |
83 let &cpo = s:save_cpo |