summaryrefslogtreecommitdiff
path: root/usr.bin/vim/doc/vim_menu.txt
blob: f3654f21bf724d7e335726f8b07166ebd51490bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
" *vim_menu.txt*   For Vim version 4.5.  Last modification: 1996 Oct 12
"
" These menu commands should recreate the default Vim menus.
" You can use this as a start for your own set of menus.
" The colons at the start of each line are just to indicate these are colon
" commands, they could be omitted.
" If the <Esc> and <CR> string appear literally in the output of ":menu", you
" need to remove the '<' flag from 'cpoptions' |'cpoptions'|

" First remove any menus that are currently present
:unmenu *
:unmenu! *

" Help menu
" Note that the help commands use <Esc> to leave Insert/Visual/Command-line
" mode
:nnoremenu Help.Overview\ \ <F1>	:help<CR>
:vnoremenu Help.Overview\ \ <F1>	<Esc>:help<CR>
:noremenu! Help.Overview\ \ <F1>	<Esc>:help<CR>

:nnoremenu Help.How\ to\.\.\.	:help how_to<CR>
:vnoremenu Help.How\ to\.\.\.	<Esc>:help how_to<CR>
:noremenu! Help.How\ to\.\.\.	<Esc>:help how_to<CR>

:nnoremenu Help.GUI			:help gui<CR>
:vnoremenu Help.GUI			<Esc>:help gui<CR>
:noremenu! Help.GUI			<Esc>:help gui<CR>

:nnoremenu Help.Version		:version<CR>
:vnoremenu Help.Version		<Esc>:version<CR>
:noremenu! Help.Version		<Esc>:version<CR>

:nnoremenu Help.Credits		:help credits<CR>
:vnoremenu Help.Credits		<Esc>:help credits<CR>
:noremenu! Help.Credits		<Esc>:help credits<CR>

:nnoremenu Help.Copying		:help uganda<CR>
:vnoremenu Help.Copying		<Esc>:help uganda<CR>
:noremenu! Help.Copying		<Esc>:help uganda<CR>

" File menu
:nnoremenu File.Save\ \ \ \ \ \ \ :w	:w<CR>
:inoremenu File.Save\ \ \ \ \ \ \ :w	<C-O>:w<CR>

:nnoremenu File.Close\ \ \ \ \ \ :q		:q<CR>
:vnoremenu File.Close\ \ \ \ \ \ :q		<Esc>:q<CR>
:noremenu! File.Close\ \ \ \ \ \ :q		<Esc>:q<CR>

:nnoremenu File.Quit\ \ \ \ \ \ \ :qa	:qa<CR>
:vnoremenu File.Quit\ \ \ \ \ \ \ :qa	<Esc>:qa<CR>
:noremenu! File.Quit\ \ \ \ \ \ \ :qa	<Esc>:qa<CR>

:nnoremenu File.Save-Quit\ \ :wqa		:wqa<CR>
:vnoremenu File.Save-Quit\ \ :wqa		<Esc>:wqa<CR>
:noremenu! File.Save-Quit\ \ :wqa		<Esc>:wqa<CR>

" Edit menu
:nnoremenu Edit.Undo			u
:nnoremenu Edit.Redo			<C-R>

:vnoremenu Edit.Cut				x
:vnoremenu Edit.Copy			y

:nnoremenu Edit.Put\ Before			[p
:inoremenu Edit.Put\ Before			<C-O>[p
:nnoremenu Edit.Put\ After			]p
:inoremenu Edit.Put\ After			<C-O>]p

:nnoremenu Edit.Paste			i<C-R>*<Esc>
:noremenu! Edit.Paste			<C-R>*