Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update term from Vim 8.0 to 8.1 #285

Merged
merged 2 commits into from
Jul 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 44 additions & 6 deletions doc/term.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*term.txt* For Vim バージョン 8.0. Last change: 2017 Feb 02
*term.txt* For Vim バージョン 8.1. Last change: 2017 Oct 14


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -109,6 +109,16 @@ termcap のコードが有効になり、カーソルキーとファンクショ
もし Vim の実行中にこれを実行した場合、bracketed paste を無効化するため 't_BD'
が端末に送信されます。

端末が bracketed paste をサポートしているにもかかわらずオプションが自動的に設
定されない場合、以下のような設定を試すことができます: >

if &term =~ "screen"
let &t_BE = "\e[?2004h"
let &t_BD = "\e[?2004l"
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"
endif
<
*cs7-problem*
Note: Vim を起動した後で端末の設定を変えると、設定が一貫しない状態になるかもし
れません。Solaris 2.5 で "stty cs8 parenb" が "stty cs7 parenb" に復元されてし
Expand Down Expand Up @@ -295,13 +305,11 @@ termcap コードに対応するオプションを設定することによって
t_ts (ステータスラインに)ウィンドウタイトル設定開始 *t_ts* *'t_ts'*
t_ue 下線終了 *t_ue* *'t_ue'*
t_us 下線モード *t_us* *'t_us'*
t_Ce 下波線終了 *t_Ce* *'t_Ce'*
t_Cs 下波線モード *t_Cs* *'t_Cs'*
t_ut 現在の背景色を使ってクリア *t_ut* *'t_ut'*
t_vb ビジュアルベル *t_vb* *'t_vb'*
t_ve カーソル表示 *t_ve* *'t_ve'*
t_vi カーソル非表示 *t_vi* *'t_vi'*
t_vs カーソル強調表示 *t_vs* *'t_vs'*
t_vs カーソル強調表示 (点滅) *t_vs* *'t_vs'*
*t_xs* *'t_xs'*
t_xs 空でない場合は強調が上書きによって消されない(hpterm)
*t_xn* *'t_xn'*
Expand All @@ -311,10 +319,16 @@ termcap コードに対応するオプションを設定することによって
t_ZR 斜体終了 *t_ZR* *'t_ZR'*

Vim 独自のもの (標準的なコードはないもの):
t_Ce 下波線終了 *t_Ce* *'t_Ce'*
t_Cs 下波線モード *t_Cs* *'t_Cs'*
t_Te 取り消し線終了 *t_Te* *'t_Te'*
t_Ts 取り消し線モード *t_Ts* *'t_Ts'*
t_IS アイコンテキスト設定開始 *t_IS* *'t_IS'*
t_IE アイコンテキスト設定終了 *t_IE* *'t_IE'*
t_WP ウィンドウ位置 (Y, X) をピクセルで指定 *t_WP* *'t_WP'*
t_WS ウィンドウサイズ (height, width) を文字数で指定 *t_WS* *'t_WS'*
t_GP ウィンドウ位置 (Y, X) をピクセルで取得 *t_GP* *'t_GP'*
t_WS ウィンドウサイズ (height, width のセル数) を指定 *t_WS* *'t_WS'*
t_VS カーソル通常表示 (点滅なし) *t_VS* *'t_VS'*
t_SI 挿入モード開始 (バー型のカーソル) *t_SI* *'t_SI'*
t_SR 置換モードの開始 (下線型のカーソル) *t_SR* *'t_SR'*
t_EI 挿入または置換モード終了(ブロック型カーソル) *t_EI* *'t_EI'*
Expand All @@ -323,15 +337,39 @@ Vim 独自のもの (標準的なコードはないもの):
|xterm-8bit| |v:termresponse| |'ttymouse'| |xterm-codes|
t_u7 カーソル位置を要求 (xterm 用) *t_u7* *'t_u7'*
|'ambiwidth'| 参照
t_RF 端末の文字色を要求 *t_RF* *'t_RF'*
t_RB 端末の背景色を要求 *t_RB* *'t_RB'*
t_8f 前景色を設定する (R, G, B) *t_8f* *'t_8f'*
t_8f 文字色を設定する (R, G, B) *t_8f* *'t_8f'*
|xterm-true-color|
t_8b 背景色を設定する (R, G, B) *t_8b* *'t_8b'*
|xterm-true-color|
t_BE bracketed paste モードを有効化する *t_BE* *'t_BE'*
|xterm-bracketed-paste|
t_BD bracketed paste モードを無効化する *t_BD* *'t_BD'*
|xterm-bracketed-paste|
t_SC カーソル色開始を設定 *t_SC* *'t_SC'*
t_EC カーソル色終了を設定 *t_EC* *'t_EC'*
t_SH カーソルの形状を設定 *t_SH* *'t_SH'*
t_RC 端末カーソルの点滅を要求 *t_RC* *'t_RC'*
t_RS 端末カーソルの形状を要求 *t_RS* *'t_RS'*

いくつかのコードは、開始、中間および終了部分を持ちます。開始と終了はオプション
termcap で定義され、中間部分はテキストです。
set title text: t_ts {title text} t_fs
set icon text: t_IS {icon text} t_IE
set cursor color: t_SC {color name} t_EC

t_SH は 1 つの引数を取らなければなりません:
0, 1 もしくは無し 点滅する矩形カーソル
2 矩形カーソル
3 点滅する下線カーソル
4 下線カーソル
5 点滅する垂直バーカーソル
6 垂直バーカーソル

t_RS は、t_RV に対する応答を受け取った場合のみ送られます。termresponse から
Terminal.app が認識され得る場合、Mac OS 上では使われません。


キーコード *terminal-key-codes*
Note: 可能なかぎり <> 形式を使ってください。
Expand Down
48 changes: 43 additions & 5 deletions en/term.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*term.txt* For Vim version 8.0. Last change: 2017 Feb 02
*term.txt* For Vim version 8.1. Last change: 2017 Oct 14


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -111,6 +111,16 @@ have a problem with this, disable bracketed paste by putting this in your
If this is done while Vim is running the 't_BD' will be sent to the terminal
to disable bracketed paste.

If your terminal supports bracketed paste, but the options are not set
automatically, you can try using something like this: >

if &term =~ "screen"
let &t_BE = "\e[?2004h"
let &t_BD = "\e[?2004l"
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"
endif
<
*cs7-problem*
Note: If the terminal settings are changed after running Vim, you might have
an illegal combination of settings. This has been reported on Solaris 2.5
Expand Down Expand Up @@ -295,13 +305,11 @@ OUTPUT CODES *terminal-output-codes*
t_ts set window title start (to status line) *t_ts* *'t_ts'*
t_ue underline end *t_ue* *'t_ue'*
t_us underline mode *t_us* *'t_us'*
t_Ce undercurl end *t_Ce* *'t_Ce'*
t_Cs undercurl mode *t_Cs* *'t_Cs'*
t_ut clearing uses the current background color *t_ut* *'t_ut'*
t_vb visual bell *t_vb* *'t_vb'*
t_ve cursor visible *t_ve* *'t_ve'*
t_vi cursor invisible *t_vi* *'t_vi'*
t_vs cursor very visible *t_vs* *'t_vs'*
t_vs cursor very visible (blink) *t_vs* *'t_vs'*
*t_xs* *'t_xs'*
t_xs if non-empty, standout not erased by overwriting (hpterm)
*t_xn* *'t_xn'*
Expand All @@ -311,10 +319,16 @@ OUTPUT CODES *terminal-output-codes*
t_ZR italics end *t_ZR* *'t_ZR'*

Added by Vim (there are no standard codes for these):
t_Ce undercurl end *t_Ce* *'t_Ce'*
t_Cs undercurl mode *t_Cs* *'t_Cs'*
t_Te strikethrough end *t_Te* *'t_Te'*
t_Ts strikethrough mode *t_Ts* *'t_Ts'*
t_IS set icon text start *t_IS* *'t_IS'*
t_IE set icon text end *t_IE* *'t_IE'*
t_WP set window position (Y, X) in pixels *t_WP* *'t_WP'*
t_WS set window size (height, width) in characters *t_WS* *'t_WS'*
t_GP get window position (Y, X) in pixels *t_GP* *'t_GP'*
t_WS set window size (height, width in cells) *t_WS* *'t_WS'*
t_VS cursor normally visible (no blink) *t_VS* *'t_VS'*
t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'*
t_SR start replace mode (underline cursor shape) *t_SR* *'t_SR'*
t_EI end insert or replace mode (block cursor shape) *t_EI* *'t_EI'*
Expand All @@ -323,6 +337,7 @@ Added by Vim (there are no standard codes for these):
|xterm-8bit| |v:termresponse| |'ttymouse'| |xterm-codes|
t_u7 request cursor position (for xterm) *t_u7* *'t_u7'*
see |'ambiwidth'|
t_RF request terminal foreground color *t_RF* *'t_RF'*
t_RB request terminal background color *t_RB* *'t_RB'*
t_8f set foreground color (R, G, B) *t_8f* *'t_8f'*
|xterm-true-color|
Expand All @@ -332,6 +347,29 @@ Added by Vim (there are no standard codes for these):
|xterm-bracketed-paste|
t_BD disable bracketed paste mode *t_BD* *'t_BD'*
|xterm-bracketed-paste|
t_SC set cursor color start *t_SC* *'t_SC'*
t_EC set cursor color end *t_EC* *'t_EC'*
t_SH set cursor shape *t_SH* *'t_SH'*
t_RC request terminal cursor blinking *t_RC* *'t_RC'*
t_RS request terminal cursor style *t_RS* *'t_RS'*

Some codes have a start, middle and end part. The start and end are defined
by the termcap option, the middle part is text.
set title text: t_ts {title text} t_fs
set icon text: t_IS {icon text} t_IE
set cursor color: t_SC {color name} t_EC

t_SH must take one argument:
0, 1 or none blinking block cursor
2 block cursor
3 blinking underline cursor
4 underline cursor
5 blinking vertical bar cursor
6 vertical bar cursor

t_RS is sent only if the response to t_RV has been received. It is not used
on Mac OS when Terminal.app could be recognized from the termresponse.


KEY CODES *terminal-key-codes*
Note: Use the <> form if possible
Expand Down