blob: ef663c73b4f191f74f7a53ef2dacc7815ebf94fa [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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>
Bram Moolenaare24c5b32019-12-10 22:11:53 +01005" Last Change: 2019 Dec 10
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7aunmenu *
Bram Moolenaar4c5d8152018-10-19 22:36:53 +02008tlunmenu *
Bram Moolenaar071d4272004-06-13 20:20:40 +00009
zeertzjq206fce32022-08-05 10:52:30 +010010if exists('#SetupLazyloadMenus')
11 au! SetupLazyloadMenus
12 augroup! SetupLazyloadMenus
13endif
14
15if exists('#buffer_list')
16 au! buffer_list
17 augroup! buffer_list
18endif
19
20if exists('#LoadBufferMenu')
21 au! LoadBufferMenu
22 augroup! LoadBufferMenu
23endif
24
25if exists('#spellmenu')
26 au! spellmenu
27 augroup! spellmenu
28endif
29
30if exists('#SpellPopupMenu')
31 au! SpellPopupMenu
32 augroup! SpellPopupMenu
33endif
34
Bram Moolenaare24c5b32019-12-10 22:11:53 +010035unlet! g:did_install_default_menus
36unlet! g:did_install_syntax_menu
37
38if exists('g:did_menu_trans')
Bram Moolenaar071d4272004-06-13 20:20:40 +000039 menutrans clear
Bram Moolenaare24c5b32019-12-10 22:11:53 +010040 unlet g:did_menu_trans
Bram Moolenaar071d4272004-06-13 20:20:40 +000041endif
42
Bram Moolenaare24c5b32019-12-10 22:11:53 +010043unlet! g:find_help_dialog
Bram Moolenaar071d4272004-06-13 20:20:40 +000044
Bram Moolenaare24c5b32019-12-10 22:11:53 +010045unlet! g:menutrans_fileformat_choices
46unlet! g:menutrans_fileformat_dialog
47unlet! g:menutrans_help_dialog
48unlet! g:menutrans_no_file
49unlet! g:menutrans_path_dialog
50unlet! g:menutrans_set_lang_to
51unlet! g:menutrans_spell_add_ARG_to_word_list
52unlet! g:menutrans_spell_change_ARG_to
53unlet! g:menutrans_spell_ignore_ARG
54unlet! g:menutrans_tags_dialog
55unlet! g:menutrans_textwidth_dialog
Bram Moolenaar071d4272004-06-13 20:20:40 +000056
57" vim: set sw=2 :