diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-27 22:23:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-27 22:23:55 +0200 |
commit | 24a98a0eb77245adc50facad8b735b20bfd31a7e (patch) | |
tree | ffdfef4e7528ec317d59463e5ff83d07e466c0d7 /runtime/doc/gui.txt | |
parent | 9cf39cc57f63f57b4a335cd25371eb456824f049 (diff) | |
download | vim-git-24a98a0eb77245adc50facad8b735b20bfd31a7e.tar.gz |
Update runtime files
Diffstat (limited to 'runtime/doc/gui.txt')
-rw-r--r-- | runtime/doc/gui.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt index dc7712357..df02c5c80 100644 --- a/runtime/doc/gui.txt +++ b/runtime/doc/gui.txt @@ -1,4 +1,4 @@ -*gui.txt* For Vim version 8.0. Last change: 2017 Sep 19 +*gui.txt* For Vim version 8.0. Last change: 2017 Sep 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -795,11 +795,17 @@ make the items look like icons. If the items do not fit then the last ones cannot be used. The toolbar does not wrap. +Note that Vim may be in any mode when executing these commands. The menu +should be defined for Normal mode and will be executed without changing the +current mode. Thus if the current window is in Visual mode and the menu +command does not intentionally change the mode, Vim will remain in Visual +mode. Best is to use `:nnoremenu` to avoid side effects. + Example for debugger tools: > - amenu 1.10 WinBar.Step :Step<CR> - amenu 1.20 WinBar.Next :Next<CR> - amenu 1.30 WinBar.Finish :Finish<CR> - amenu 1.40 WinBar.Cont :Continue<CR> + nnoremenu 1.10 WinBar.Step :Step<CR> + nnoremenu 1.20 WinBar.Next :Next<CR> + nnoremenu 1.30 WinBar.Finish :Finish<CR> + nnoremenu 1.40 WinBar.Cont :Continue<CR> < The window toolbar uses the ToolbarLine and ToolbarButton highlight groups. |