mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
docs: graduate gui.txt to "flow layout"
This commit is contained in:
@@ -226,14 +226,15 @@ tooltips for menus. See |terminal-input|.
|
|||||||
Special characters in a menu name:
|
Special characters in a menu name:
|
||||||
|
|
||||||
*menu-shortcut*
|
*menu-shortcut*
|
||||||
& The next character is the shortcut key. Make sure each
|
- & The next character is the shortcut key. Make sure each shortcut key is
|
||||||
shortcut key is only used once in a (sub)menu. If you want to
|
only used once in a (sub)menu. If you want to insert a literal "&" in the
|
||||||
insert a literal "&" in the menu name use "&&".
|
menu name use "&&".
|
||||||
*menu-text*
|
*menu-text*
|
||||||
<Tab> Separates the menu name from right-aligned text. This can be
|
- <Tab> Separates the menu name from right-aligned text. This can be used to
|
||||||
used to show the equivalent typed command. The text "<Tab>"
|
show the equivalent typed command. The text "<Tab>" can be used here for
|
||||||
can be used here for convenience. If you are using a real
|
convenience. If you are using a real tab, don't forget to put a backslash
|
||||||
tab, don't forget to put a backslash before it!
|
before it!
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
|
|
||||||
:amenu &File.&Open<Tab>:e :browse e<CR>
|
:amenu &File.&Open<Tab>:e :browse e<CR>
|
||||||
@@ -246,14 +247,14 @@ is right aligned, and the "O" is underlined, to indicate it is the shortcut.
|
|||||||
*:am* *:amenu* *:an* *:anoremenu*
|
*:am* *:amenu* *:an* *:anoremenu*
|
||||||
The ":amenu" command can be used to define menu entries for all modes at once,
|
The ":amenu" command can be used to define menu entries for all modes at once,
|
||||||
except for Terminal mode. To make the command work correctly, a character is
|
except for Terminal mode. To make the command work correctly, a character is
|
||||||
automatically inserted for some modes:
|
automatically inserted for some modes: >
|
||||||
mode inserted appended ~
|
mode inserted appended
|
||||||
Normal nothing nothing
|
Normal nothing nothing
|
||||||
Visual <C-C> <C-\><C-G>
|
Visual <C-C> <C-\><C-G>
|
||||||
Insert <C-\><C-O>
|
Insert <C-\><C-O>
|
||||||
Cmdline <C-C> <C-\><C-G>
|
Cmdline <C-C> <C-\><C-G>
|
||||||
Op-pending <C-C> <C-\><C-G>
|
Op-pending <C-C> <C-\><C-G>
|
||||||
|
<
|
||||||
Example: >
|
Example: >
|
||||||
|
|
||||||
:amenu File.Next :next^M
|
:amenu File.Next :next^M
|
||||||
@@ -327,7 +328,7 @@ the right. The priority is given as a number before the ":menu" command.
|
|||||||
Example: >
|
Example: >
|
||||||
:80menu Buffer.next :bn<CR>
|
:80menu Buffer.next :bn<CR>
|
||||||
|
|
||||||
The default menus have these priorities:
|
The default menus have these priorities: >
|
||||||
File 10
|
File 10
|
||||||
Edit 20
|
Edit 20
|
||||||
Tools 40
|
Tools 40
|
||||||
@@ -335,7 +336,7 @@ The default menus have these priorities:
|
|||||||
Buffers 60
|
Buffers 60
|
||||||
Window 70
|
Window 70
|
||||||
Help 9999
|
Help 9999
|
||||||
|
<
|
||||||
When no or zero priority is given, 500 is used.
|
When no or zero priority is given, 500 is used.
|
||||||
The priority for the PopUp menu is not used.
|
The priority for the PopUp menu is not used.
|
||||||
|
|
||||||
@@ -386,7 +387,7 @@ the 'toolbar' option. You can choose between an image, text or both.
|
|||||||
*toolbar-icon*
|
*toolbar-icon*
|
||||||
The toolbar is defined as a special menu called ToolBar, which only has one
|
The toolbar is defined as a special menu called ToolBar, which only has one
|
||||||
level. Vim interprets the items in this menu as follows:
|
level. Vim interprets the items in this menu as follows:
|
||||||
1) If an "icon=" argument was specified, the file with this name is used.
|
- 1 If an "icon=" argument was specified, the file with this name is used.
|
||||||
The file can either be specified with the full path or with the base name.
|
The file can either be specified with the full path or with the base name.
|
||||||
In the last case it is searched for in the "bitmaps" directory in
|
In the last case it is searched for in the "bitmaps" directory in
|
||||||
'runtimepath', like in point 3. Examples: >
|
'runtimepath', like in point 3. Examples: >
|
||||||
@@ -398,11 +399,11 @@ level. Vim interprets the items in this menu as follows:
|
|||||||
A space in the file name must be escaped with a backslash.
|
A space in the file name must be escaped with a backslash.
|
||||||
A menu priority must come _after_ the icon argument: >
|
A menu priority must come _after_ the icon argument: >
|
||||||
:amenu icon=foo 1.42 ToolBar.Foo :echo "42!"<CR>
|
:amenu icon=foo 1.42 ToolBar.Foo :echo "42!"<CR>
|
||||||
2) An item called 'BuiltIn##', where ## is a number, is taken as number ## of
|
- 2 An item called 'BuiltIn##', where ## is a number, is taken as number ## of
|
||||||
the built-in bitmaps available in Vim. Currently there are 31 numbered
|
the built-in bitmaps available in Vim. Currently there are 31 numbered
|
||||||
from 0 to 30 which cover most common editing operations |builtin-tools|. >
|
from 0 to 30 which cover most common editing operations |builtin-tools|. >
|
||||||
:amenu ToolBar.BuiltIn22 :call SearchNext("back")<CR>
|
:amenu ToolBar.BuiltIn22 :call SearchNext("back")<CR>
|
||||||
3) An item with another name is first searched for in the directory
|
- 3 An item with another name is first searched for in the directory
|
||||||
"bitmaps" in 'runtimepath'. If found, the bitmap file is used as the
|
"bitmaps" in 'runtimepath'. If found, the bitmap file is used as the
|
||||||
toolbar button image. Note that the exact filename is OS-specific: For
|
toolbar button image. Note that the exact filename is OS-specific: For
|
||||||
example, under Win32 the command >
|
example, under Win32 the command >
|
||||||
@@ -414,48 +415,49 @@ level. Vim interprets the items in this menu as follows:
|
|||||||
The light grey pixels will be changed to the Window frame color and the
|
The light grey pixels will be changed to the Window frame color and the
|
||||||
dark grey pixels to the window shadow color. More colors might also work,
|
dark grey pixels to the window shadow color. More colors might also work,
|
||||||
depending on your system.
|
depending on your system.
|
||||||
4) If the bitmap is still not found, Vim checks for a match against its list
|
- 4 If the bitmap is still not found, Vim checks for a match against its list
|
||||||
of built-in names. Each built-in button image has a name.
|
of built-in names. Each built-in button image has a name.
|
||||||
So the command >
|
So the command >
|
||||||
:amenu ToolBar.Open :e
|
:amenu ToolBar.Open :e
|
||||||
< will show the built-in "open a file" button image if no open.bmp exists.
|
< will show the built-in "open a file" button image if no open.bmp exists.
|
||||||
All the built-in names can be seen used in menu.vim.
|
All the built-in names can be seen used in menu.vim.
|
||||||
5) If all else fails, a blank, but functioning, button is displayed.
|
- 5 If all else fails, a blank, but functioning, button is displayed.
|
||||||
|
|
||||||
*builtin-tools*
|
*builtin-tools*
|
||||||
nr Name Normal action ~
|
>
|
||||||
00 New open new window
|
nr Name Normal action
|
||||||
01 Open browse for file to open in current window
|
00 New open new window
|
||||||
02 Save write buffer to file
|
01 Open browse for file to open in current window
|
||||||
03 Undo undo last change
|
02 Save write buffer to file
|
||||||
04 Redo redo last undone change
|
03 Undo undo last change
|
||||||
05 Cut delete selected text to clipboard
|
04 Redo redo last undone change
|
||||||
06 Copy copy selected text to clipboard
|
05 Cut delete selected text to clipboard
|
||||||
07 Paste paste text from clipboard
|
06 Copy copy selected text to clipboard
|
||||||
08 Print print current buffer
|
07 Paste paste text from clipboard
|
||||||
09 Help open a buffer on Vim's builtin help
|
08 Print print current buffer
|
||||||
10 Find start a search command
|
09 Help open a buffer on Vim's builtin help
|
||||||
11 SaveAll write all modified buffers to file
|
10 Find start a search command
|
||||||
12 SaveSesn write session file for current situation
|
11 SaveAll write all modified buffers to file
|
||||||
13 NewSesn write new session file
|
12 SaveSesn write session file for current situation
|
||||||
14 LoadSesn load session file
|
13 NewSesn write new session file
|
||||||
15 RunScript browse for file to run as a Vim script
|
14 LoadSesn load session file
|
||||||
16 Replace prompt for substitute command
|
15 RunScript browse for file to run as a Vim script
|
||||||
17 WinClose close current window
|
16 Replace prompt for substitute command
|
||||||
18 WinMax make current window use many lines
|
17 WinClose close current window
|
||||||
19 WinMin make current window use few lines
|
18 WinMax make current window use many lines
|
||||||
20 WinSplit split current window
|
19 WinMin make current window use few lines
|
||||||
21 Shell start a shell
|
20 WinSplit split current window
|
||||||
22 FindPrev search again, backward
|
21 Shell start a shell
|
||||||
23 FindNext search again, forward
|
22 FindPrev search again, backward
|
||||||
24 FindHelp prompt for word to search help for
|
23 FindNext search again, forward
|
||||||
25 Make run make and jump to first error
|
24 FindHelp prompt for word to search help for
|
||||||
26 TagJump jump to tag under the cursor
|
25 Make run make and jump to first error
|
||||||
27 RunCtags build tags for files in current directory
|
26 TagJump jump to tag under the cursor
|
||||||
28 WinVSplit split current window vertically
|
27 RunCtags build tags for files in current directory
|
||||||
29 WinMaxWidth make current window use many columns
|
28 WinVSplit split current window vertically
|
||||||
30 WinMinWidth make current window use few columns
|
29 WinMaxWidth make current window use many columns
|
||||||
|
30 WinMinWidth make current window use few columns
|
||||||
|
<
|
||||||
*hidden-menus* *win32-hidden-menus*
|
*hidden-menus* *win32-hidden-menus*
|
||||||
In the Win32 GUI, starting a menu name with ']' excludes that menu from the
|
In the Win32 GUI, starting a menu name with ']' excludes that menu from the
|
||||||
main menu bar. You must then use the |:popup| command to display it.
|
main menu bar. You must then use the |:popup| command to display it.
|
||||||
@@ -515,13 +517,13 @@ Executing Menus *execute-menus*
|
|||||||
:emenu File.Exit
|
:emenu File.Exit
|
||||||
|
|
||||||
:[range]em[enu] {mode} {menu} Like above, but execute the menu for {mode}:
|
:[range]em[enu] {mode} {menu} Like above, but execute the menu for {mode}:
|
||||||
'n': |:nmenu| Normal mode
|
- 'n': |:nmenu| Normal mode
|
||||||
'v': |:vmenu| Visual mode
|
- 'v': |:vmenu| Visual mode
|
||||||
's': |:smenu| Select mode
|
- 's': |:smenu| Select mode
|
||||||
'o': |:omenu| Operator-pending mode
|
- 'o': |:omenu| Operator-pending mode
|
||||||
't': |:tlmenu| Terminal mode
|
- 't': |:tlmenu| Terminal mode
|
||||||
'i': |:imenu| Insert mode
|
- 'i': |:imenu| Insert mode
|
||||||
'c': |:cmenu| Cmdline mode
|
- 'c': |:cmenu| Cmdline mode
|
||||||
|
|
||||||
|
|
||||||
You can use :emenu to access useful menu items you may have got used to from
|
You can use :emenu to access useful menu items you may have got used to from
|
||||||
@@ -659,4 +661,4 @@ This creates a popup menu that doesn't exist on the main menu-bar.
|
|||||||
Note that a menu that starts with ']' will not be displayed.
|
Note that a menu that starts with ']' will not be displayed.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:et:ft=help:norl:
|
||||||
|
@@ -70,6 +70,7 @@ local new_layout = {
|
|||||||
['dev_vimpatch.txt'] = true,
|
['dev_vimpatch.txt'] = true,
|
||||||
['editorconfig.txt'] = true,
|
['editorconfig.txt'] = true,
|
||||||
['faq.txt'] = true,
|
['faq.txt'] = true,
|
||||||
|
['gui.txt'] = true,
|
||||||
['lua.txt'] = true,
|
['lua.txt'] = true,
|
||||||
['luaref.txt'] = true,
|
['luaref.txt'] = true,
|
||||||
['news.txt'] = true,
|
['news.txt'] = true,
|
||||||
|
Reference in New Issue
Block a user