Skip to content

Commit 4432c54

Browse files
committed
Update#2
:command-addr: にある -addr=other の翻訳において can use ".", "$" and "%" as with "lines" as with の訳に迷う.
1 parent 2aa9a3b commit 4432c54

File tree

2 files changed

+34
-47
lines changed

2 files changed

+34
-47
lines changed

doc/map.jax

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim バージョン 8.1. Last change: 2019 Apr 25
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*
@@ -1366,8 +1358,8 @@ Note: いくつかの補完方法は環境変数を展開します。
13661358
-range=N カウント(無指定時はN)を行番号位置に指定できます
13671359
(例 |:split|)。行番号に 0 を指定可能になる。
13681360
-count=N カウント(無指定時はN)を行番号位置か、初期化引数に指定でき
1369-
ます (例 |:Next|)。-count(無指定時の値なし)とした場合
1370-
-count=0と同じです。
1361+
ます (例 |:Next|)。
1362+
-count -count=0 と同じです
13711363

13721364
Note: -range=Nと-count=Nは相互に排他的であるということに注意してください。どち
13731365
らか一方のみを指定することができます。
@@ -1378,14 +1370,15 @@ Note: -range=Nと-count=Nは相互に排他的であるということに注意
13781370
タブページに関連付けすることができます。
13791371

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

13901383

13911384
特殊なケース ~

en/map.txt

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.1. Last change: 2019 Apr 25
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*
@@ -1391,7 +1383,7 @@ Possible attributes are:
13911383
number.
13921384
-count=N A count (default N) which is specified either in the line
13931385
number position, or as an initial argument (like |:Next|).
1394-
Specifying -count (without a default) acts like -count=0
1386+
-count acts like -count=0
13951387

13961388
Note that -range=N and -count=N are mutually exclusive - only one should be
13971389
specified.
@@ -1402,14 +1394,16 @@ by default correspond to the current line, last line and the whole buffer,
14021394
relate to arguments, (loaded) buffers, windows or tab pages.
14031395

14041396
Possible values are (second column is the short name used in listing):
1405-
-addr=lines Range of lines (this is the default)
1397+
-addr=lines Range of lines (this is the default for -range)
14061398
-addr=arguments arg Range for arguments
14071399
-addr=buffers buf Range for buffers (also not loaded buffers)
14081400
-addr=loaded_buffers load Range for loaded buffers
14091401
-addr=windows win Range for windows
14101402
-addr=tabs tab Range for tab pages
14111403
-addr=quickfix qf Range for quickfix entries
1412-
-addr=other ? other kind of range
1404+
-addr=other ? other kind of range; can use ".", "$" and "%"
1405+
as with "lines" (this is the default for
1406+
-count)
14131407

14141408

14151409
Special cases ~

0 commit comments

Comments
 (0)