blob: b614851d89b4a8f04e5f11f278552992deed7a4e [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"
Christian Brabandte978b452023-08-13 10:33:05 +02004" Maintainer: The Vim Project <https://github.com/vim/vim>
5" Last Change: 2023 Aug 10
6" Former Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaar071d4272004-06-13 20:20:40 +00007
8aunmenu *
Bram Moolenaar4c5d8152018-10-19 22:36:53 +02009tlunmenu *
Bram Moolenaar071d4272004-06-13 20:20:40 +000010
zeertzjq206fce32022-08-05 10:52:30 +010011if exists('#SetupLazyloadMenus')
12 au! SetupLazyloadMenus
13 augroup! SetupLazyloadMenus
14endif
15
16if exists('#buffer_list')
17 au! buffer_list
18 augroup! buffer_list
19endif
20
21if exists('#LoadBufferMenu')
22 au! LoadBufferMenu
23 augroup! LoadBufferMenu
24endif
25
26if exists('#spellmenu')
27 au! spellmenu
28 augroup! spellmenu
29endif
30
31if exists('#SpellPopupMenu')
32 au! SpellPopupMenu
33 augroup! SpellPopupMenu
34endif
35
Bram Moolenaare24c5b32019-12-10 22:11:53 +010036unlet! g:did_install_default_menus
37unlet! g:did_install_syntax_menu
38
39if exists('g:did_menu_trans')
Bram Moolenaar071d4272004-06-13 20:20:40 +000040 menutrans clear
Bram Moolenaare24c5b32019-12-10 22:11:53 +010041 unlet g:did_menu_trans
Bram Moolenaar071d4272004-06-13 20:20:40 +000042endif
43
Bram Moolenaare24c5b32019-12-10 22:11:53 +010044unlet! g:find_help_dialog
Bram Moolenaar071d4272004-06-13 20:20:40 +000045
Bram Moolenaare24c5b32019-12-10 22:11:53 +010046unlet! g:menutrans_fileformat_choices
47unlet! g:menutrans_fileformat_dialog
48unlet! g:menutrans_help_dialog
49unlet! g:menutrans_no_file
50unlet! g:menutrans_path_dialog
51unlet! g:menutrans_set_lang_to
52unlet! g:menutrans_spell_add_ARG_to_word_list
53unlet! g:menutrans_spell_change_ARG_to
54unlet! g:menutrans_spell_ignore_ARG
55unlet! g:menutrans_tags_dialog
56unlet! g:menutrans_textwidth_dialog
Bram Moolenaar071d4272004-06-13 20:20:40 +000057
58" vim: set sw=2 :