1"
2" cream-menu-tools.vim
3"
4" Cream -- An easy-to-use configuration of the famous Vim text editor
5" [ http://cream.sourceforge.net ] Copyright (C) 2001-2011 Steve Hall
6"
7" License:
8" This program is free software; you can redistribute it and/or modify
9" it under the terms of the GNU General Public License as published by
10" the Free Software Foundation; either version 3 of the License, or
11" (at your option) any later version.
12" [ http://www.gnu.org/licenses/gpl.html ]
13"
14" This program is distributed in the hope that it will be useful, but
15" WITHOUT ANY WARRANTY; without even the implied warranty of
16" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17" General Public License for more details.
18"
19" You should have received a copy of the GNU General Public License
20" along with this program; if not, write to the Free Software
21" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22" 02111-1307, USA.
23
24
25" Block Commenting
26	vmenu <silent> 70.101 &Tools.Block\ Comment\ (selection)<Tab>F6				:call Cream_commentify("v")<CR>
27	vmenu <silent> 70.102 &Tools.Block\ Un-Comment\ (selection)<Tab>Shift+F6	:call Cream_decommentify("v")<CR>
28
29" Spell check
30anoremenu <silent> 70.120 &Tools.-SEP120-										<Nul>
31if v:version >= 700
32    anoremenu <silent> 70.121 &Tools.&Spell\ Check.On/Off\ (toggle)<Tab>F7 				:call Cream_spellcheck()<CR>
33    anoremenu <silent> 70.122 &Tools.&Spell\ Check.Suggest\ Alternatives<Tab>Alt+F7 	:call Cream_spell_altword()<CR>
34else
35    anoremenu <silent> 70.121 &Tools.&Spell\ Check.Next\ Spelling\ Error<Tab>F7 				:call Cream_spell_next()<CR>
36    anoremenu <silent> 70.122 &Tools.&Spell\ Check.Previous\ Spelling\ Error<Tab>Shift+F7 		:call Cream_spell_prev()<CR>
37    anoremenu <silent> 70.123 &Tools.&Spell\ Check.Show\ Spelling\ Errors\ (toggle)<Tab>Alt+F7 	:call Cream_spellcheck()<CR>
38    anoremenu <silent> 70.124 &Tools.&Spell\ Check.Add\ Word\ (under\ cursor)\ to\ Dictionary<Tab>Ctrl+F7	:call Cream_spell_saveword()<CR>
39	anoremenu <silent> 70.150 &Tools.&Spell\ Check.-SEP150-			<Nul>
40	anoremenu <silent> 70.151 &Tools.&Spell\ Check.Language\.\.\.	:call Cream_spell_lang()<CR>
41	anoremenu <silent> 70.152 &Tools.&Spell\ Check.Options\.\.\.	:call Cream_spell_options()<CR>
42endif
43
44" Bookmarking
45anoremenu <silent> 70.200 &Tools.-SEP200-											<Nul>
46anoremenu <silent> 70.201 &Tools.&Bookmarks.Bookmark\ Next<Tab>F2					:call Cream_WOK_mark_next()<CR>
47anoremenu <silent> 70.202 &Tools.&Bookmarks.Bookmark\ Previous<Tab>Shift+F2			:call Cream_WOK_mark_prev()<CR>
48anoremenu <silent> 70.203 &Tools.&Bookmarks.Bookmark\ Set\ (toggle)<Tab>Alt+F2		:call Cream_WOK_mark_toggle()<CR>
49"anoremenu <silent> 70.204 &Tools.&Bookmarks.Show\ Bookmarks\ (toggle)<Tab>Ctrl+F2	:call Cream_ShowMarksToggle()<CR>
50anoremenu <silent> 70.205 &Tools.&Bookmarks.Delete\ All\ Bookmarks<Tab>Alt+Shift+F2	:call Cream_WOK_mark_killall()<CR>
51
52" Macros
53anoremenu <silent> 70.300 &Tools.-SEP300-								<Nul>
54	imenu <silent> 70.301 &Tools.Macro\ Play<Tab>F8						<C-b>@q
55	imenu <silent> 70.302 &Tools.Macro\ Record\ (toggle)<Tab>Shift+F8	<C-b>:call Cream_macro_record("q")<CR>
56
57" Diff mode
58anoremenu <silent> 70.350 &Tools.-SEP350-								<Nul>
59anoremenu <silent> 70.350 &Tools.&Diff\ Mode							:call Cream_diffmode_toggle()<CR>
60
61
62" Folding
63	imenu <silent> 70.400 &Tools.-SEP400-											<Nul>
64	imenu <silent> 70.401 &Tools.&Folding.&Fold\ Open/Close<Tab>F9              <C-b>:call Cream_fold("down")<CR>
65	vmenu <silent> 70.402 &Tools.&Folding.&Set\ Fold\ (Selection)<Tab>F9		     :<C-u>call Cream_fold_set("v")<CR>
66	imenu <silent> 70.403 &Tools.&Folding.&Fold\ Open/Close<Tab>Shift+F9		<C-b>:call Cream_fold("up")<CR>
67anoremenu <silent> 70.404 &Tools.&Folding.&Open\ All\ Folds<Tab>Ctrl+F9			     :call Cream_fold_openall()<CR>
68anoremenu <silent> 70.405 &Tools.&Folding.&Close\ All\ Folds<Tab>Ctrl+Shift+F9	     :call Cream_fold_closeall()<CR>
69anoremenu <silent> 70.406 &Tools.&Folding.&Delete\ Fold\ at\ Cursor<Tab>Alt+F9	     :call Cream_fold_delete()<CR>
70anoremenu <silent> 70.407 &Tools.&Folding.D&elete\ All\ Folds<Tab>Alt+Shift+F9	     :call Cream_fold_deleteall()<CR>
71
72" Completion
73anoremenu <silent> 70.500 &Tools.-SEP500-													<Nul>
74	imenu <silent> 70.501 &Tools.&Completion.&Word\ Completion<Tab>Ctrl+Space					<C-r>=Cream_complete_forward()<CR>
75	imenu <silent> 70.502 &Tools.&Completion.W&ord\ Completion\ (reverse)<Tab>Ctrl+Shift+Space	<C-r>=Cream_complete_backward()<CR>
76anoremenu <silent> 70.503 &Tools.&Completion.-SEP503-										<Nul>
77	imenu <silent> 70.504 &Tools.&Completion.O&mni\ Completion<Tab>Ctrl+Enter					<C-r>=Cream_complete_omni_forward()<CR>
78	imenu <silent> 70.505 &Tools.&Completion.Om&ni\ Completion\ (reverse)<Tab>Ctrl+Shift+Enter	<C-r>=Cream_complete_omni_backward()<CR>
79anoremenu <silent> 70.506 &Tools.&Completion.-SEP506-										<Nul>
80	imenu <silent> 70.507 &Tools.&Completion.&Template\ Completion<Tab>Esc+Space			<C-r>=Cream_template_expand()<CR>
81anoremenu <silent> 70.508 &Tools.&Completion.Template\ Listing\.\.\.						:call Cream_template_listing()<CR>
82"anoremenu <silent> 70.509 &Tools.&Completion.-SEP509-										<Nul>
83"    imenu <silent> 70.510 &Tools.&Completion.&Lists\ (HTML\ tags/CSS\ properties)	        <C-b>:call Cream_EasyHtml_call()<CR>
84anoremenu <silent> 70.511 &Tools.&Completion.-SEP511-										<Nul>
85" only windows has the :popup feature (for now)
86if has("win32")
87	imenu <silent> 70.512 &Tools.&Completion.Info\ Pop<Tab>Alt+(							<C-b>:call Cream_pop_paren_map()<CR>
88endif
89anoremenu <silent> 70.513 &Tools.&Completion.Info\ Pop\ Options\.\.\.						:call Cream_pop_options()<CR>
90
91" Tag jumping
92anoremenu <silent> 70.600 &Tools.-SEP600-														<Nul>
93	imenu <silent> 70.601 &Tools.&Tag\ Navigation.&Jump\ to\ Tag\ (under\ cursor)<Tab>Alt+Down	<C-b>:call Cream_tag_goto()<CR>
94	imenu <silent> 70.602 &Tools.&Tag\ Navigation.&Close\ and\ Jump\ Back<Tab>Alt+Up			<C-b>:call Cream_tag_backclose()<CR>
95	imenu <silent> 70.603 &Tools.&Tag\ Navigation.&Previous\ Tag<Tab>Alt+Left					<C-b>:call Cream_tag_backward()<CR>
96	imenu <silent> 70.604 &Tools.&Tag\ Navigation.&Next\ Tag<Tab>Alt+Right						<C-b>:call Cream_tag_forward()<CR>
97	imenu <silent> 70.605 &Tools.&Tag\ Navigation.&Tag\ List\ (toggle)<Tab>Ctrl+Alt+Down			<C-b>:call Cream_Tlist_toggle()<CR>
98
99	imenu <silent> 70.610 &Tools.File/URL\ Na&vigation.&Open\ File/URL\ (under\ cursor)<Tab>Ctrl+Enter	<C-b>:call Cream_file_open_undercursor("i")<CR>
100	vmenu <silent> 70.611 &Tools.File/URL\ Na&vigation.&Open\ File/URL\ (under\ cursor)<Tab>Ctrl+Enter	:<C-u>call Cream_file_open_undercursor("v")<CR>
101
102" Add-ons (Note: autolisting begins at 70.910)
103anoremenu <silent> 70.900 &Tools.-Sep900-							<Nul>
104anoremenu <silent> 70.901 &Tools.Add-ons\ E&xplore\ (Map/Unmap) 	:call Cream_addon_select()<CR>
105
106