Skip to content

Update editing.{txt,jax} #1492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions doc/editing.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*editing.txt* For Vim バージョン 9.1. Last change: 2024 Jan 14
*editing.txt* For Vim バージョン 9.1. Last change: 2024 Apr 12


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -648,10 +648,11 @@ Vim の開始時に複数のファイル名を与えると、それらは引数

:[count]arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
引数リストに {name} を追加し、その編集を始める。
{name} が既に引数リスト内にあるときは、その編集を始め
る。
これはコマンド |:argadd| を使い、次に |:edit| を使うの
と同じである。
重複のチェックは行われないため、ファイルを引数リストに
2 回追加することが可能である |:argded|。
これはコマンド |:argadd| 使用後に |:edit| を使うのと同
じである。(小さな例外として、|:edit| は引数リストを変
更しないため、引数リストのポインタは変更されない)。
ファイル名中のスペースは "\" でエスケープされなければ
ならない。
[count] は |:argadd| と同様に使われる。
Expand All @@ -669,12 +670,12 @@ Vim の開始時に複数のファイル名を与えると、それらは引数
挿入される。引数リストが "a b c" で "b" が現在の引数の
場合のコマンドの結果一覧:
コマンド 新たな引数リスト ~
:argadd x a b x c
:0argadd x x a b c
:1argadd x a x b c
:$argadd x a b c x
:argadd x a [b] x c
:0argadd x x a [b] c
:1argadd x a x [b] c
:$argadd x a [b] c x
最後の1つの後に:
:+2argadd y a b c x y
:+2argadd y a [b] c x y
重複検査はないので、1個のファイルを引数リストに2回加え
ることもできる。|:argdedupe| を使うことで後から修正で
きる。: >
Expand Down
21 changes: 12 additions & 9 deletions en/editing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*editing.txt* For Vim version 9.1. Last change: 2024 Jan 14
*editing.txt* For Vim version 9.1. Last change: 2024 Apr 12


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -658,9 +658,12 @@ list of the current window.

:[count]arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
Add {name}s to the argument list and edit it.
When {name} already exists in the argument list, this
entry is edited.
This is like using |:argadd| and then |:edit|.
There is no check for duplicates, it is possible to
add a file to the argument list twice |:argded|.
This is like using |:argadd| and then |:edit| (with
the small exception that |:edit| does not change the
argument list, so the argument list pointer isn't
changed).
Spaces in filenames have to be escaped with "\".
[count] is used like with |:argadd|.
If the current file cannot be |abandon|ed {name}s will
Expand All @@ -679,12 +682,12 @@ list of the current window.
If the argument list is "a b c", and "b" is the
current argument, then these commands result in:
command new argument list ~
:argadd x a b x c
:0argadd x x a b c
:1argadd x a x b c
:$argadd x a b c x
:argadd x a [b] x c
:0argadd x x a [b] c
:1argadd x a x [b] c
:$argadd x a [b] c x
And after the last one:
:+2argadd y a b c x y
:+2argadd y a [b] c x y
There is no check for duplicates, it is possible to
add a file to the argument list twice. You can use
|:argdedupe| to fix it afterwards: >
Expand Down