Skip to content

Commit f0d95f6

Browse files
authored
Merge pull request #528 from hiromi-mi/update_map
Update map.{txt,jax}
2 parents ef6472b + b6f7995 commit f0d95f6

File tree

2 files changed

+53
-61
lines changed

2 files changed

+53
-61
lines changed

doc/map.jax

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim バージョン 8.1. Last change: 2018 Dec 18
1+
*map.txt* For Vim バージョン 8.1. Last change: 2019 May 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -76,7 +76,6 @@
7676
{rhs} は再マップされないので、マップが入れ子になったり
7777
再帰的になることはありません。コマンドを再定義するとき
7878
によく使われます。
79-
{Vi にはありません}
8079

8180

8281
:unm[ap] {lhs} |mapmode-nvo| *:unm* *:unmap*
@@ -109,7 +108,7 @@
109108
:cmapc[lear] |mapmode-c| *:cmapc* *:cmapclear*
110109
:tmapc[lear] |mapmode-t| *:tmapc* *:tmapclear*
111110
マップコマンドに対応したモードのすべてのマップを削除し
112-
ます。{Vi にはありません}
111+
ます。
113112
バッファローカルなマップを削除するには <buffer> 引数を
114113
付けてください |:map-<buffer>|
115114
警告: 標準設定のマップも削除されます。
@@ -142,7 +141,6 @@
142141
:tma[p] {lhs} |mapmode-t| *:tmap_l*
143142
マップコマンドに対応したモードの {lhs} で始まるマップ
144143
を一覧表示します。
145-
{Vi にはありません}
146144

147145
マップコマンドを使うと、単キーまたは複数キーの入力を別の文字列にマップできま
148146
す。ファンクションキーにコマンド列を割り当てたり、あるキーを別のキーに変換した
@@ -158,7 +156,6 @@
158156
の文字が必要になります。そのため、"aa" が入力された時点ではまだマップは適用さ
159157
れず、次の入力まで待機状態になります。例えば空白文字を入力すれば "foo" と空白
160158
文字が挿入されます。"a" を入力すれば "bar" が挿入されます。
161-
{Vi はあいまいなマップを許可しません}
162159

163160

164161
1.2 特別な引数 *:map-arguments*
@@ -1005,47 +1002,43 @@ non-id マッチした場所の前がスペース、タブ、行頭、挿入
10051002
*:norea* *:noreabbrev*
10061003
:norea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
10071004
":ab" と同じですが、展開後にマップを適用しません。
1008-
{Vi にはありません}
10091005

10101006
*:ca* *:cabbrev*
10111007
:ca[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
10121008
":ab" と同じですが、コマンドラインモード用の短縮入力の
1013-
み対象です。{Vi にはありません}
1009+
み対象です。
10141010

10151011
*:cuna* *:cunabbrev*
10161012
:cuna[bbrev] {lhs} ":una" と同じですが、コマンドラインモード用の短縮入力
1017-
のみ対象です。{Vi にはありません}
1013+
のみ対象です。
10181014

10191015
*:cnorea* *:cnoreabbrev*
10201016
:cnorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
10211017
":ab" と同じですが、コマンドラインモード用の短縮入力の
10221018
み対象で、展開後にマップを適用しません。
1023-
{Vi にはありません}
10241019

10251020
*:ia* *:iabbrev*
10261021
:ia[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
10271022
":ab" と同じですが、挿入モード用の短縮入力のみ対象で
1028-
す。{Vi にはありません}
1023+
す。
10291024

10301025
*:iuna* *:iunabbrev*
10311026
:iuna[bbrev] {lhs} ":una" と同じですが、挿入モード用の短縮入力のみ対象で
1032-
す。{Vi にはありません}
1027+
す。
10331028

10341029
*:inorea* *:inoreabbrev*
10351030
:inorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
10361031
":ab" と同じですが、挿入モード用の短縮入力のみ対象で、
1037-
展開後にマップを適用しません。{Vi にはありません}
1032+
展開後にマップを適用しません。
10381033

10391034
*:abc* *:abclear*
1040-
:abc[lear] [<buffer>] すべての短縮入力を削除します。{Vi にはありません}
1035+
:abc[lear] [<buffer>] すべての短縮入力を削除します。
10411036

10421037
*:iabc* *:iabclear*
10431038
:iabc[lear] [<buffer>] 挿入モード用の短縮入力を削除します。
1044-
{Vi にはありません}
10451039

10461040
*:cabc* *:cabclear*
10471041
:cabc[lear] [<buffer>] コマンドラインモード用の短縮入力を削除します。
1048-
{Vi にはありません}
10491042

10501043
*using_CTRL-V*
10511044
特殊な文字を短縮入力の{rhs}で使うことができます。非印字可能文字の特殊な意味を
@@ -1132,8 +1125,7 @@ non-id マッチした場所の前がスペース、タブ、行頭、挿入
11321125
コマンド|:scriptnames|を使って、それまでに実行されたスクリプトとそのスクリプト
11331126
番号を確認できます。
11341127

1135-
これらはすべて {Vi にはありません}。
1136-
{|+eval| が有効な場合のみ利用できます}
1128+
これらはすべて {|+eval| が有効な場合のみ利用できます}
11371129

11381130
==============================================================================
11391131
4. ユーザー定義コマンド (User-defined command) *user-commands*
@@ -1179,9 +1171,10 @@ non-id マッチした場所の前がスペース、タブ、行頭、挿入
11791171

11801172
:com[mand] *:com* *:command*
11811173
すべてのユーザー定義コマンドを一覧表示します。表示中の
1182-
行頭の2文字は次の意味です
1174+
行頭の文字は次の意味です:
11831175
! -bang 属性を持つコマンド
11841176
" -register 属性を持つコマンド
1177+
| -bar 属性を持つコマンド
11851178
b カレントバッファのローカルコマンド
11861179
(属性に関する詳細は下記参照)
11871180
一覧は |:filter| を用いてコマンド名でフィルタできま
@@ -1365,8 +1358,8 @@ Note: いくつかの補完方法は環境変数を展開します。
13651358
-range=N カウント(無指定時はN)を行番号位置に指定できます
13661359
(例 |:split|)。行番号に 0 を指定可能になる。
13671360
-count=N カウント(無指定時はN)を行番号位置か、初期化引数に指定でき
1368-
ます (例 |:Next|)。-count(無指定時の値なし)とした場合
1369-
-count=0と同じです。
1361+
ます (例 |:Next|)。
1362+
-count -count=0 と同じです
13701363

13711364
Note: -range=Nと-count=Nは相互に排他的であるということに注意してください。どち
13721365
らか一方のみを指定することができます。
@@ -1376,14 +1369,17 @@ Note: -range=Nと-count=Nは相互に排他的であるということに注意
13761369
バッファ全体を表します。これらは引数、(ロードされた)バッファ、ウィンドウ及び
13771370
タブページに関連付けすることができます。
13781371

1379-
次の値を利用できます:
1380-
-addr=lines 行 (デフォルト)
1381-
-addr=arguments 引数
1382-
-addr=buffers バッファ (ロードされていないバッファも)
1383-
-addr=loaded_buffers ロードされたバッファ
1384-
-addr=windows ウィンドウ
1385-
-addr=tabs タブページ
1386-
-addr=other 他の種類の範囲
1372+
次の値を利用できます (2列目は一覧表示で使われる短い名前です):
1373+
-addr=lines 行 (-range のデフォルトです)
1374+
-addr=arguments arg 引数
1375+
-addr=buffers buf バッファ (ロードされていないバッファも)
1376+
-addr=loaded_buffers load ロードされたバッファ
1377+
-addr=windows win ウィンドウ
1378+
-addr=tabs tab タブページ
1379+
-addr=quickfix qf quickfix のエントリ
1380+
-addr=other ? 他の種類の範囲; "lines" をつけるのと同様に".",
1381+
"$", "%" が使えます (-count のデフォルトです)
1382+
13871383

13881384
特殊なケース ~
13891385
*:command-bang* *:command-bar*

en/map.txt

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.1. Last change: 2018 Dec 18
1+
*map.txt* For Vim version 8.1. Last change: 2019 May 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -76,7 +76,7 @@ modes.
7676
Map the key sequence {lhs} to {rhs} for the modes
7777
where the map command applies. Disallow mapping of
7878
{rhs}, to avoid nested and recursive mappings. Often
79-
used to redefine a command. {not in Vi}
79+
used to redefine a command.
8080

8181

8282
:unm[ap] {lhs} |mapmode-nvo| *:unm* *:unmap*
@@ -110,7 +110,7 @@ modes.
110110
:cmapc[lear] |mapmode-c| *:cmapc* *:cmapclear*
111111
:tmapc[lear] |mapmode-t| *:tmapc* *:tmapclear*
112112
Remove ALL mappings for the modes where the map
113-
command applies. {not in Vi}
113+
command applies.
114114
Use the <buffer> argument to remove buffer-local
115115
mappings |:map-<buffer>|
116116
Warning: This also removes the default mappings.
@@ -143,7 +143,6 @@ modes.
143143
:tma[p] {lhs} |mapmode-t| *:tmap_l*
144144
List the key mappings for the key sequences starting
145145
with {lhs} in the modes where the map command applies.
146-
{not in Vi}
147146

148147
These commands are used to map a key or key sequence to a string of
149148
characters. You can use this to put command sequences under function keys,
@@ -160,7 +159,6 @@ decide if "aa" or "aaa" should be mapped. This means that after typing "aa"
160159
that mapping won't get expanded yet, Vim is waiting for another character.
161160
If you type a space, then "foo" will get inserted, plus the space. If you
162161
type "a", then "bar" will get inserted.
163-
{Vi does not allow ambiguous mappings}
164162

165163

166164
1.2 SPECIAL ARGUMENTS *:map-arguments*
@@ -1016,45 +1014,40 @@ See |:verbose-cmd| for more information.
10161014

10171015
*:norea* *:noreabbrev*
10181016
:norea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
1019-
same as ":ab", but no remapping for this {rhs} {not
1020-
in Vi}
1017+
Same as ":ab", but no remapping for this {rhs}.
10211018

10221019
*:ca* *:cabbrev*
10231020
:ca[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
1024-
same as ":ab", but for Command-line mode only. {not
1025-
in Vi}
1021+
Same as ":ab", but for Command-line mode only.
10261022

10271023
*:cuna* *:cunabbrev*
1028-
:cuna[bbrev] {lhs} same as ":una", but for Command-line mode only. {not
1029-
in Vi}
1024+
:cuna[bbrev] {lhs} Same as ":una", but for Command-line mode only.
10301025

10311026
*:cnorea* *:cnoreabbrev*
10321027
:cnorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
10331028
same as ":ab", but for Command-line mode only and no
1034-
remapping for this {rhs} {not in Vi}
1029+
remapping for this {rhs}
10351030

10361031
*:ia* *:iabbrev*
10371032
:ia[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
1038-
same as ":ab", but for Insert mode only. {not in Vi}
1033+
Same as ":ab", but for Insert mode only.
10391034

10401035
*:iuna* *:iunabbrev*
1041-
:iuna[bbrev] {lhs} same as ":una", but for insert mode only. {not in
1042-
Vi}
1036+
:iuna[bbrev] {lhs} Same as ":una", but for insert mode only.
10431037

10441038
*:inorea* *:inoreabbrev*
10451039
:inorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
1046-
same as ":ab", but for Insert mode only and no
1047-
remapping for this {rhs} {not in Vi}
1040+
Same as ":ab", but for Insert mode only and no
1041+
remapping for this {rhs}.
10481042

10491043
*:abc* *:abclear*
1050-
:abc[lear] [<buffer>] Remove all abbreviations. {not in Vi}
1044+
:abc[lear] [<buffer>] Remove all abbreviations.
10511045

10521046
*:iabc* *:iabclear*
1053-
:iabc[lear] [<buffer>] Remove all abbreviations for Insert mode. {not in Vi}
1047+
:iabc[lear] [<buffer>] Remove all abbreviations for Insert mode.
10541048

10551049
*:cabc* *:cabclear*
1056-
:cabc[lear] [<buffer>] Remove all abbreviations for Command-line mode. {not
1057-
in Vi}
1050+
:cabc[lear] [<buffer>] Remove all abbreviations for Command-line mode.
10581051

10591052
*using_CTRL-V*
10601053
It is possible to use special characters in the rhs of an abbreviation.
@@ -1147,8 +1140,7 @@ to find out what they are defined to.
11471140
The |:scriptnames| command can be used to see which scripts have been sourced
11481141
and what their <SNR> number is.
11491142

1150-
This is all {not in Vi} and {not available when compiled without the |+eval|
1151-
feature}.
1143+
This is all {not available when compiled without the |+eval| feature}.
11521144

11531145
==============================================================================
11541146
4. User-defined commands *user-commands*
@@ -1193,9 +1185,10 @@ scripts.
11931185

11941186
:com[mand] *:com* *:command*
11951187
List all user-defined commands. When listing commands,
1196-
the characters in the first two columns are
1188+
the characters in the first columns are:
11971189
! Command has the -bang attribute
11981190
" Command has the -register attribute
1191+
| Command has the -bar attribute
11991192
b Command is local to current buffer
12001193
(see below for details on attributes)
12011194
The list can be filtered on command name with
@@ -1390,7 +1383,7 @@ Possible attributes are:
13901383
number.
13911384
-count=N A count (default N) which is specified either in the line
13921385
number position, or as an initial argument (like |:Next|).
1393-
Specifying -count (without a default) acts like -count=0
1386+
-count acts like -count=0
13941387

13951388
Note that -range=N and -count=N are mutually exclusive - only one should be
13961389
specified.
@@ -1400,14 +1393,17 @@ It is possible that the special characters in the range like ., $ or % which
14001393
by default correspond to the current line, last line and the whole buffer,
14011394
relate to arguments, (loaded) buffers, windows or tab pages.
14021395

1403-
Possible values are:
1404-
-addr=lines Range of lines (this is the default)
1405-
-addr=arguments Range for arguments
1406-
-addr=buffers Range for buffers (also not loaded buffers)
1407-
-addr=loaded_buffers Range for loaded buffers
1408-
-addr=windows Range for windows
1409-
-addr=tabs Range for tab pages
1410-
-addr=other other kind of range
1396+
Possible values are (second column is the short name used in listing):
1397+
-addr=lines Range of lines (this is the default for -range)
1398+
-addr=arguments arg Range for arguments
1399+
-addr=buffers buf Range for buffers (also not loaded buffers)
1400+
-addr=loaded_buffers load Range for loaded buffers
1401+
-addr=windows win Range for windows
1402+
-addr=tabs tab Range for tab pages
1403+
-addr=quickfix qf Range for quickfix entries
1404+
-addr=other ? other kind of range; can use ".", "$" and "%"
1405+
as with "lines" (this is the default for
1406+
-count)
14111407

14121408

14131409
Special cases ~

0 commit comments

Comments
 (0)