delmenu.vim 1.2 KB

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