Skip to content

Update usr_10.{txt,jax} #1815

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 3 commits into from
Nov 14, 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
6 changes: 5 additions & 1 deletion doc/usr_10.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_10.txt* For Vim バージョン 9.1. Last change: 2019 Nov 22
*usr_10.txt* For Vim バージョン 9.1. Last change: 2024 Nov 12

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -699,6 +699,10 @@ sort コマンドはファイルの中身をソート (並べ替え) するコ
在の日時を出力できるので、"!!date<Enter>" で現在行を "date" の出力で置き換える
ことができます。これはファイルに日付を挿入するのに便利です。

Note: "!cmd" (例: ファイル範囲なしで使用する) と "{range}!cmd" には違いがあり
ます。前者は単に外部コマンドを実行し、Vim は出力を表示しますが、後者はフィル
ターを通して {range} 行をフィルターし、その範囲をフィルターコマンドの結果で置
き換えます。詳細については、|:!| および |:range!| を参照してください。

☆うまく動作しない場合

Expand Down
7 changes: 6 additions & 1 deletion en/usr_10.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_10.txt* For Vim version 9.1. Last change: 2019 Nov 22
*usr_10.txt* For Vim version 9.1. Last change: 2024 Nov 12

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -736,6 +736,11 @@ The "!!" command filters the current line through a filter. In Unix the "date"
command prints the current time and date. "!!date<Enter>" replaces the current
line with the output of "date". This is useful to add a timestamp to a file.

Note: There is a difference between "!cmd" (e.g. using it without any file
range) and "{range}!cmd". While the former will simply execute the external
command and Vim will show the output, the latter will filter {range}lines
through the filter and replace that range by the result of the filter command.
See |:!| and |:range!| for details.

WHEN IT DOESN'T WORK

Expand Down