File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 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
2
2
3
3
VIM USER MANUAL - by Bram Moolenaar
4
4
@@ -699,6 +699,10 @@ sort コマンドはファイルの中身をソート (並べ替え) するコ
699
699
在の日時を出力できるので、"!!date<Enter> " で現在行を "date" の出力で置き換える
700
700
ことができます。これはファイルに日付を挿入するのに便利です。
701
701
702
+ Note: "!cmd" (例: ファイル範囲なしで使用する) と "{range} !cmd" には違いがあり
703
+ ます。前者は単に外部コマンドを実行し、Vim は出力を表示しますが、後者はフィル
704
+ ターを通して {range} 行をフィルターし、その範囲をフィルターコマンドの結果で置
705
+ き換えます。詳細については、| :! | および | :range! | を参照してください。
702
706
703
707
☆うまく動作しない場合
704
708
Original file line number Diff line number Diff line change 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
2
2
3
3
VIM USER MANUAL - by Bram Moolenaar
4
4
@@ -736,6 +736,11 @@ The "!!" command filters the current line through a filter. In Unix the "date"
736
736
command prints the current time and date. "!!date<Enter> " replaces the current
737
737
line with the output of "date". This is useful to add a timestamp to a file.
738
738
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.
739
744
740
745
WHEN IT DOESN'T WORK
741
746
You can’t perform that action at this time.
0 commit comments