Mercurial > vim
comparison runtime/doc/gui.txt @ 13437:02b3f719eacb
Update runtime files.
commit https://github.com/vim/vim/commit/b5b7562475ad032a174b893286172de0d2c157cd
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 9 22:22:21 2018 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 09 Mar 2018 22:30:06 +0100 |
parents | 6687b321fb91 |
children | 1174611ad715 |
comparison
equal
deleted
inserted
replaced
13436:698a757ec8ec | 13437:02b3f719eacb |
---|---|
1 *gui.txt* For Vim version 8.0. Last change: 2017 Nov 09 | 1 *gui.txt* For Vim version 8.0. Last change: 2018 Mar 06 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
132 | 132 |
133 *:winp* *:winpos* *E188* | 133 *:winp* *:winpos* *E188* |
134 :winp[os] | 134 :winp[os] |
135 Display current position of the top left corner of the GUI vim | 135 Display current position of the top left corner of the GUI vim |
136 window in pixels. Does not work in all versions. | 136 window in pixels. Does not work in all versions. |
137 Also see |getwinposx()| and |getwinposy()|. | 137 Also see |getwinpos()|, |getwinposx()| and |getwinposy()|. |
138 | 138 |
139 :winp[os] {X} {Y} *E466* | 139 :winp[os] {X} {Y} *E466* |
140 Put the GUI vim window at the given {X} and {Y} coordinates. | 140 Put the GUI vim window at the given {X} and {Y} coordinates. |
141 The coordinates should specify the position in pixels of the | 141 The coordinates should specify the position in pixels of the |
142 top left corner of the window. Does not work in all versions. | 142 top left corner of the window. Does not work in all versions. |
990 | 990 |
991 *:popup* *:popu* | 991 *:popup* *:popu* |
992 :popu[p] {name} Popup the menu {name}. The menu named must | 992 :popu[p] {name} Popup the menu {name}. The menu named must |
993 have at least one subentry, but need not | 993 have at least one subentry, but need not |
994 appear on the menu-bar (see |hidden-menus|). | 994 appear on the menu-bar (see |hidden-menus|). |
995 {only available for Win32 and GTK GUI} | 995 {only available for Win32 and GTK GUI or in |
996 the terminal when compiled with +insert_expand} | |
996 | 997 |
997 :popu[p]! {name} Like above, but use the position of the mouse | 998 :popu[p]! {name} Like above, but use the position of the mouse |
998 pointer instead of the cursor. | 999 pointer instead of the cursor. |
1000 In the terminal this is the last known | |
1001 position, which is usually at the last click | |
1002 or release (mouse movement is irrelevalt). | |
999 | 1003 |
1000 Example: > | 1004 Example: > |
1001 :popup File | 1005 :popup File |
1002 will make the "File" menu (if there is one) appear at the text cursor (mouse | 1006 will make the "File" menu (if there is one) appear at the text cursor (mouse |
1003 pointer if ! was used). > | 1007 pointer if ! was used). > |
1004 | 1008 |
1005 :amenu ]Toolbar.Make :make<CR> | 1009 :amenu ]Toolbar.Make :make<CR> |
1006 :popup ]Toolbar | 1010 :popup ]Toolbar |
1007 This creates a popup menu that doesn't exist on the main menu-bar. | 1011 This creates a popup menu that doesn't exist on the main menu-bar. |
1012 | |
1013 Note that in the GUI the :popup command will return immediately, before a | |
1014 selection has been made. In the terminal the commands waits for the user to | |
1015 make a selection. | |
1008 | 1016 |
1009 Note that a menu that starts with ']' will not be displayed. | 1017 Note that a menu that starts with ']' will not be displayed. |
1010 | 1018 |
1011 ============================================================================== | 1019 ============================================================================== |
1012 6. Extras *gui-extras* | 1020 6. Extras *gui-extras* |