Mercurial > vim
annotate runtime/delmenu.vim @ 30601:6194c0ba3526
Added tag v9.0.0635 for changeset 33a3f63785db811c404370a6eeb08adb0cc5450e
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Oct 2022 21:30:06 +0200 |
parents | 8f0ca93857a6 |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " This Vim script deletes all the menus, so that they can be redefined. |
2 " Warning: This also deletes all menus defined by the user! | |
3 " | |
4 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
5 " Last Change: 2019 Dec 10 |
7 | 6 |
7 aunmenu * | |
14952
405309f9dd13
patch 8.1.0487: no menus specifically for the terminal window
Bram Moolenaar <Bram@vim.org>
parents:
7
diff
changeset
|
8 tlunmenu * |
7 | 9 |
29601
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
10 if exists('#SetupLazyloadMenus') |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
11 au! SetupLazyloadMenus |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
12 augroup! SetupLazyloadMenus |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
13 endif |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
14 |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
15 if exists('#buffer_list') |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
16 au! buffer_list |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
17 augroup! buffer_list |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
18 endif |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
19 |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
20 if exists('#LoadBufferMenu') |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
21 au! LoadBufferMenu |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
22 augroup! LoadBufferMenu |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
23 endif |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
24 |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
25 if exists('#spellmenu') |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
26 au! spellmenu |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
27 augroup! spellmenu |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
28 endif |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
29 |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
30 if exists('#SpellPopupMenu') |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
31 au! SpellPopupMenu |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
32 augroup! SpellPopupMenu |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
33 endif |
8f0ca93857a6
patch 9.0.0141: "delmenu" does not remove autocmmands
Bram Moolenaar <Bram@vim.org>
parents:
18860
diff
changeset
|
34 |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
35 unlet! g:did_install_default_menus |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
36 unlet! g:did_install_syntax_menu |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
37 |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
38 if exists('g:did_menu_trans') |
7 | 39 menutrans clear |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
40 unlet g:did_menu_trans |
7 | 41 endif |
42 | |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
43 unlet! g:find_help_dialog |
7 | 44 |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
45 unlet! g:menutrans_fileformat_choices |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
46 unlet! g:menutrans_fileformat_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
47 unlet! g:menutrans_help_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
48 unlet! g:menutrans_no_file |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
49 unlet! g:menutrans_path_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
50 unlet! g:menutrans_set_lang_to |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
51 unlet! g:menutrans_spell_add_ARG_to_word_list |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
52 unlet! g:menutrans_spell_change_ARG_to |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
53 unlet! g:menutrans_spell_ignore_ARG |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
54 unlet! g:menutrans_tags_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
55 unlet! g:menutrans_textwidth_dialog |
7 | 56 |
57 " vim: set sw=2 : |