Skip to content

Commit 3b20a05

Browse files
authored
Merge pull request #1815 from h-east/update-usr_10
Update usr_10.{txt,jax}
2 parents 02d30ff + 6b555a7 commit 3b20a05

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

doc/usr_10.jax

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_10.txt* For Vim バージョン 9.1. Last change: 2019 Nov 22
1+
*usr_10.txt* For Vim バージョン 9.1. Last change: 2024 Nov 12
22

33
VIM USER MANUAL - by Bram Moolenaar
44

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

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

703707
☆うまく動作しない場合
704708

en/usr_10.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_10.txt* For Vim version 9.1. Last change: 2019 Nov 22
1+
*usr_10.txt* For Vim version 9.1. Last change: 2024 Nov 12
22

33
VIM USER MANUAL - by Bram Moolenaar
44

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

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

740745
WHEN IT DOESN'T WORK
741746

0 commit comments

Comments
 (0)