Mercurial > vim
comparison runtime/menu.vim @ 2034:7bc41231fbc7
Update runtime files.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 06 Jan 2010 20:54:52 +0100 |
parents | b7c89e3e19f7 |
children | c6f1aa1e9f32 |
comparison
equal
deleted
inserted
replaced
2033:de5a43c5eedc | 2034:7bc41231fbc7 |
---|---|
1 " Vim support file to define the default menus | 1 " Vim support file to define the default menus |
2 " You can also use this as a start for your own set of menus. | 2 " You can also use this as a start for your own set of menus. |
3 " | 3 " |
4 " Maintainer: Bram Moolenaar <Bram@vim.org> | 4 " Maintainer: Bram Moolenaar <Bram@vim.org> |
5 " Last Change: 2008 Jun 30 | 5 " Last Change: 2009 Feb 26 |
6 | 6 |
7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work | 7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work |
8 " in all modes and avoid side effects from mappings defined by the user. | 8 " in all modes and avoid side effects from mappings defined by the user. |
9 | 9 |
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise | 10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise |
136 endfunc | 136 endfunc |
137 | 137 |
138 func! s:FnameEscape(fname) | 138 func! s:FnameEscape(fname) |
139 if exists('*fnameescape') | 139 if exists('*fnameescape') |
140 return fnameescape(a:fname) | 140 return fnameescape(a:fname) |
141 endif | |
141 return escape(a:fname, " \t\n*?[{`$\\%#'\"|!<") | 142 return escape(a:fname, " \t\n*?[{`$\\%#'\"|!<") |
142 endfunc | 143 endfunc |
143 | 144 |
144 " Edit menu | 145 " Edit menu |
145 an 20.310 &Edit.&Undo<Tab>u u | 146 an 20.310 &Edit.&Undo<Tab>u u |
1014 tmenu ToolBar.Redo Redo | 1015 tmenu ToolBar.Redo Redo |
1015 tmenu ToolBar.Cut Cut to clipboard | 1016 tmenu ToolBar.Cut Cut to clipboard |
1016 tmenu ToolBar.Copy Copy to clipboard | 1017 tmenu ToolBar.Copy Copy to clipboard |
1017 tmenu ToolBar.Paste Paste from Clipboard | 1018 tmenu ToolBar.Paste Paste from Clipboard |
1018 if !has("gui_athena") | 1019 if !has("gui_athena") |
1019 tmenu ToolBar.Find Find... | 1020 tmenu ToolBar.Replace Find / Replace... |
1020 tmenu ToolBar.FindNext Find Next | 1021 tmenu ToolBar.FindNext Find Next |
1021 tmenu ToolBar.FindPrev Find Previous | 1022 tmenu ToolBar.FindPrev Find Previous |
1022 tmenu ToolBar.Replace Find / Replace... | |
1023 endif | 1023 endif |
1024 tmenu ToolBar.LoadSesn Choose a session to load | 1024 tmenu ToolBar.LoadSesn Choose a session to load |
1025 tmenu ToolBar.SaveSesn Save current session | 1025 tmenu ToolBar.SaveSesn Save current session |
1026 tmenu ToolBar.RunScript Choose a Vim Script to run | 1026 tmenu ToolBar.RunScript Choose a Vim Script to run |
1027 tmenu ToolBar.Make Make current project (:make) | 1027 tmenu ToolBar.Make Make current project (:make) |