Mercurial > vim
comparison runtime/menu.vim @ 22439:445799159195 v8.2.1768
patch 8.2.1768: cannot use the help menu from a terminal window
Commit: https://github.com/vim/vim/commit/b45cd36bd90f71e4a35b1ef1f75a3bedef6d8bac
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 28 21:41:49 2020 +0200
patch 8.2.1768: cannot use the help menu from a terminal window
Problem: Cannot use the help menu from a terminal window.
Solution: Add ":tlnoremenu" commands. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/7023)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 28 Sep 2020 21:45:03 +0200 |
parents | 83cfa1ef1bf2 |
children | f0d7cb510ce3 |
comparison
equal
deleted
inserted
replaced
22438:2c92548e5afd | 22439:445799159195 |
---|---|
1 " Vim support file to define the default menus | 1 " Vim support file to define the default menus |
2 " You can also use this as a start for your own set of menus. | 2 " You can also use this as a start for your own set of menus. |
3 " | 3 " |
4 " Maintainer: Bram Moolenaar <Bram@vim.org> | 4 " Maintainer: Bram Moolenaar <Bram@vim.org> |
5 " Last Change: 2020 Mar 29 | 5 " Last Change: 2020 Sep 28 |
6 | 6 |
7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work | 7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work |
8 " in all modes and avoid side effects from mappings defined by the user. | 8 " in all modes and avoid side effects from mappings defined by the user. |
9 | 9 |
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise | 10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise |
86 an 9999.70 &Help.&Sponsor/Register :help sponsor<CR> | 86 an 9999.70 &Help.&Sponsor/Register :help sponsor<CR> |
87 an 9999.70 &Help.O&rphans :help kcc<CR> | 87 an 9999.70 &Help.O&rphans :help kcc<CR> |
88 an 9999.75 &Help.-sep2- <Nop> | 88 an 9999.75 &Help.-sep2- <Nop> |
89 an 9999.80 &Help.&Version :version<CR> | 89 an 9999.80 &Help.&Version :version<CR> |
90 an 9999.90 &Help.&About :intro<CR> | 90 an 9999.90 &Help.&About :intro<CR> |
91 | |
92 if exists(':tlmenu') | |
93 tlnoremenu 9999.10 &Help.&Overview<Tab><F1> <C-W>:help<CR> | |
94 tlnoremenu 9999.20 &Help.&User\ Manual <C-W>:help usr_toc<CR> | |
95 tlnoremenu 9999.30 &Help.&How-To\ Links <C-W>:help how-to<CR> | |
96 tlnoremenu <silent> 9999.40 &Help.&Find\.\.\. <C-W>:call <SID>Helpfind()<CR> | |
97 tlnoremenu 9999.45 &Help.-sep1- <Nop> | |
98 tlnoremenu 9999.50 &Help.&Credits <C-W>:help credits<CR> | |
99 tlnoremenu 9999.60 &Help.Co&pying <C-W>:help copying<CR> | |
100 tlnoremenu 9999.70 &Help.&Sponsor/Register <C-W>:help sponsor<CR> | |
101 tlnoremenu 9999.70 &Help.O&rphans <C-W>:help kcc<CR> | |
102 tlnoremenu 9999.75 &Help.-sep2- <Nop> | |
103 tlnoremenu 9999.80 &Help.&Version <C-W>:version<CR> | |
104 tlnoremenu 9999.90 &Help.&About <C-W>:intro<CR> | |
105 endif | |
91 | 106 |
92 fun! s:Helpfind() | 107 fun! s:Helpfind() |
93 if !exists("g:menutrans_help_dialog") | 108 if !exists("g:menutrans_help_dialog") |
94 let g:menutrans_help_dialog = "Enter a command or word to find help on:\n\nPrepend i_ for Input mode commands (e.g.: i_CTRL-X)\nPrepend c_ for command-line editing commands (e.g.: c_<Del>)\nPrepend ' for an option name (e.g.: 'shiftwidth')" | 109 let g:menutrans_help_dialog = "Enter a command or word to find help on:\n\nPrepend i_ for Input mode commands (e.g.: i_CTRL-X)\nPrepend c_ for command-line editing commands (e.g.: c_<Del>)\nPrepend ' for an option name (e.g.: 'shiftwidth')" |
95 endif | 110 endif |