File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
- *autocmd.txt* For Vim バージョン 9.1. Last change: 2024 Aug 18
1
+ *autocmd.txt* For Vim バージョン 9.1. Last change: 2024 Oct 27
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1240,6 +1240,14 @@ TerminalWinOpen `:terminal` もしくは |term_start()| により端末
1240
1240
TermResponse | t_RV | に対する応答をターミナルから受け取った
1241
1241
とき。Vim変数 | v:termresponse | の値を使って、
1242
1242
ターミナルのバージョンに応じた処理ができる。
1243
+ これは | defaults.vim | で putty 端末を検出し、
1244
+ 暗い背景を設定するために使用される: >
1245
+
1246
+ au TermResponse *
1247
+ \ if v:termresponse == "\e[>0;136;0c"
1248
+ \ set bg=dark
1249
+ \ endif
1250
+ <
1243
1251
Note: このイベントは他のイベントの処理中にも発
1244
1252
行されることがある。特に、ファイル入出力、シェ
1245
1253
ルコマンドの実行、時間の掛かる処理など。
Original file line number Diff line number Diff line change 1
- *autocmd.txt* For Vim version 9.1. Last change: 2024 Aug 18
1
+ *autocmd.txt* For Vim version 9.1. Last change: 2024 Oct 27
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1254,10 +1254,19 @@ TerminalWinOpen Just after a terminal buffer was created, with
1254
1254
TermResponse After the response to | t_RV | is received from
1255
1255
the terminal. The value of | v:termresponse |
1256
1256
can be used to do things depending on the
1257
- terminal version. Note that this event may be
1258
- triggered halfway executing another event,
1259
- especially if file I/O, a shell command or
1260
- anything else that takes time is involved.
1257
+ terminal version.
1258
+ This is used in | defaults.vim | to detect
1259
+ putty terminal and set a dark background: >
1260
+
1261
+ au TermResponse *
1262
+ \ if v:termresponse == "\e[>0;136;0c"
1263
+ \ set bg=dark
1264
+ \ endif
1265
+ <
1266
+ Note: that this event may be triggered halfway
1267
+ executing another event, especially if file
1268
+ I/O, a shell command or anything else that
1269
+ takes time is involved.
1261
1270
*TermResponseAll*
1262
1271
TermResponseAll After the response to | t_RV | , | t_RC | , | t_RS | ,
1263
1272
| t_RB | , | t_RF | , or | t_u7 | are received from
You can’t perform that action at this time.
0 commit comments