robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Sean Dewarvim-patch:e978b4534a5e (#24697)cbf54ec2a5

master
1.2 KiB58 linesraw
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:	The Vim Project <https://github.com/vim/vim>
5" Last Change:	2023 Aug 10
6" Former Maintainer:	Bram Moolenaar <Bram@vim.org>
7
8aunmenu *
9tlunmenu *
10
11if 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
36unlet! g:did_install_default_menus
37unlet! g:did_install_syntax_menu
38
39if exists('g:did_menu_trans')
40  menutrans clear
41  unlet g:did_menu_trans
42endif
43
44unlet! g:find_help_dialog
45
46unlet! 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
57
58" vim: set sw=2 :