Mercurial > vim
annotate runtime/delmenu.vim @ 20907:4eeda7139133 v8.2.1005
patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing
Commit: https://github.com/vim/vim/commit/9b68c82b7ca768100f3eb4223d100c62c5429e53
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 18 19:31:08 2020 +0200
patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing
Problem: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing.
Solution: Use an enum value.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 18 Jun 2020 19:45:03 +0200 |
parents | ec92ccff5c8b |
children | 8f0ca93857a6 |
rev | line source |
---|---|
7 | 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> | |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
5 " Last Change: 2019 Dec 10 |
7 | 6 |
7 aunmenu * | |
14952
405309f9dd13
patch 8.1.0487: no menus specifically for the terminal window
Bram Moolenaar <Bram@vim.org>
parents:
7
diff
changeset
|
8 tlunmenu * |
7 | 9 |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
10 unlet! g:did_install_default_menus |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
11 unlet! g:did_install_syntax_menu |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
12 |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
13 if exists('g:did_menu_trans') |
7 | 14 menutrans clear |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
15 unlet g:did_menu_trans |
7 | 16 endif |
17 | |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
18 unlet! g:find_help_dialog |
7 | 19 |
18860
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
20 unlet! g:menutrans_fileformat_choices |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
21 unlet! g:menutrans_fileformat_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
22 unlet! g:menutrans_help_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
23 unlet! g:menutrans_no_file |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
24 unlet! g:menutrans_path_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
25 unlet! g:menutrans_set_lang_to |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
26 unlet! g:menutrans_spell_add_ARG_to_word_list |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
27 unlet! g:menutrans_spell_change_ARG_to |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
28 unlet! g:menutrans_spell_ignore_ARG |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
29 unlet! g:menutrans_tags_dialog |
ec92ccff5c8b
patch 8.1.2416: loading menus sets v:errmsg
Bram Moolenaar <Bram@vim.org>
parents:
18053
diff
changeset
|
30 unlet! g:menutrans_textwidth_dialog |
7 | 31 |
32 " vim: set sw=2 : |