delmenu.vim 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. aunmenu *
  8. tlunmenu *
  9. if exists('#SetupLazyloadMenus')
  10. au! SetupLazyloadMenus
  11. augroup! SetupLazyloadMenus
  12. endif
  13. if exists('#buffer_list')
  14. au! buffer_list
  15. augroup! buffer_list
  16. endif
  17. if exists('#LoadBufferMenu')
  18. au! LoadBufferMenu
  19. augroup! LoadBufferMenu
  20. endif
  21. if exists('#spellmenu')
  22. au! spellmenu
  23. augroup! spellmenu
  24. endif
  25. if exists('#SpellPopupMenu')
  26. au! SpellPopupMenu
  27. augroup! SpellPopupMenu
  28. endif
  29. unlet! g:did_install_default_menus
  30. unlet! g:did_install_syntax_menu
  31. if exists('g:did_menu_trans')
  32. menutrans clear
  33. unlet g:did_menu_trans
  34. endif
  35. unlet! g:find_help_dialog
  36. unlet! g:menutrans_fileformat_choices
  37. unlet! g:menutrans_fileformat_dialog
  38. unlet! g:menutrans_help_dialog
  39. unlet! g:menutrans_no_file
  40. unlet! g:menutrans_path_dialog
  41. unlet! g:menutrans_set_lang_to
  42. unlet! g:menutrans_spell_add_ARG_to_word_list
  43. unlet! g:menutrans_spell_change_ARG_to
  44. unlet! g:menutrans_spell_ignore_ARG
  45. unlet! g:menutrans_tags_dialog
  46. unlet! g:menutrans_textwidth_dialog
  47. " vim: set sw=2 :