Mercurial > vim
diff runtime/doc/gui.txt @ 12559:34c8ec888122
Update runtime files
commit https://github.com/vim/vim/commit/24a98a0eb77245adc50facad8b735b20bfd31a7e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 27 22:23:55 2017 +0200
Update runtime files
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 27 Sep 2017 22:30:06 +0200 |
parents | d91cf2e26ef0 |
children | 3b26420fc639 |
line wrap: on
line diff
--- 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.