File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
- *print.txt* For Vim バージョン 9.0. Last change: 2022 Jan 23
1
+ *print.txt* For Vim バージョン 9.0. Last change: 2022 Oct 01
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -154,13 +154,16 @@ VMS での初期設定は、標準の印刷デバイスか、指定されてい
154
154
このオプションを設定するときは、関数を使うと、スペースをエスケープしなくてもい
155
155
いので簡単です。例: >
156
156
157
- :set printexpr=PrintFile(v:fname_in )
158
- :function PrintFile(fname )
159
- : call system("ghostview " .. a:fname )
160
- : call delete(a:fname )
157
+ :set printexpr=PrintFile()
158
+ :function PrintFile()
159
+ : call system("ghostview " .. v:fname_in )
160
+ : call delete(v:fname_in )
161
161
: return v:shell_error
162
162
:endfunc
163
163
164
+ オプションに関数呼び出しのみが設定されている場合は、より効率的です、
165
+ | expr-option-function | を参照。
166
+
164
167
ファイルを読み込む前に制御を返す印刷プログラムもあるので注意してください。ファ
165
168
イルをすぐに削除してしまうと、印刷できないかもしれません。ほとんどの場合、その
166
169
ようなプログラムには、印刷した後でファイルを削除するオプションが用意されていま
You can’t perform that action at this time.
0 commit comments