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
22
33
44 VIMリファレンスマニュアル by Bram Moolenaar
@@ -1240,6 +1240,14 @@ TerminalWinOpen `:terminal` もしくは |term_start()| により端末
12401240TermResponse | t_RV | に対する応答をターミナルから受け取った
12411241 とき。Vim変数 | v:termresponse | の値を使って、
12421242 ターミナルのバージョンに応じた処理ができる。
1243+ これは | defaults.vim | で putty 端末を検出し、
1244+ 暗い背景を設定するために使用される: >
1245+
1246+ au TermResponse *
1247+ \ if v:termresponse == "\e[>0;136;0c"
1248+ \ set bg=dark
1249+ \ endif
1250+ <
12431251 Note: このイベントは他のイベントの処理中にも発
12441252 行されることがある。特に、ファイル入出力、シェ
12451253 ルコマンドの実行、時間の掛かる処理など。
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
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1254,10 +1254,19 @@ TerminalWinOpen Just after a terminal buffer was created, with
12541254TermResponse After the response to | t_RV | is received from
12551255 the terminal. The value of | v:termresponse |
12561256 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.
12611270 *TermResponseAll*
12621271TermResponseAll After the response to | t_RV | , | t_RC | , | t_RS | ,
12631272 | t_RB | , | t_RF | , or | t_u7 | are received from
You can’t perform that action at this time.
0 commit comments