Skip to content

Commit 988136e

Browse files
authored
Merge pull request #112 from vim-jp/update-for-8.0.0210
Update for 8.0.0210
2 parents 7aebae6 + af33898 commit 988136e

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

doc/term.jax

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ termcap のコードが有効になり、カーソルキーとファンクショ
8787
そのため、print キーを押してスクリーンへの出力を止めることができます。<BS>
8888
押すと出力が再開します。
8989

90+
*xterm-bracketed-paste*
91+
't_BE' がオンの場合、raw モードに入るときに 't_BE' が端末に送信され、raw モー
92+
ドを抜けるときに 't_BD' が送信されます。その際、端末はペーストされたテキストの
93+
前に 't_PS' を置き、ペーストされたテキストの後に 't_PE' を置くことが想定されま
94+
す。これにより、Vim はタイプされた文字とペーストされたテキストを分離することが
95+
できます。ペーストされたテキストはマウスの中ボタンを使ったときと同様に扱われま
96+
す。
97+
98+
いくつかの状況では、Vim は bracketed paste を認識せず、生のテキストが取得され
99+
る場合があることに注意してください。別のいくつかの状況では Vim はペーストされ
100+
た最初の文字のみを取得し、残りは切り捨てられます。例: "r" コマンドを使った場
101+
合。
102+
90103
*cs7-problem*
91104
Note: Vim を起動した後で端末の設定を変えると、設定が一貫しない状態になるかもし
92105
れません。Solaris 2.5 で "stty cs8 parenb" が "stty cs7 parenb" に復元されてし
@@ -306,6 +319,10 @@ Vim 独自のもの (標準的なコードはないもの):
306319
|xterm-true-color|
307320
t_8b 背景色を設定する (R, G, B) *t_8b* *'t_8b'*
308321
|xterm-true-color|
322+
t_BE bracketed paste モードを有効化する *t_BE* *'t_BE'*
323+
|xterm-bracketed-paste|
324+
t_BD bracketed paste モードを無効化する *t_BD* *'t_BD'*
325+
|xterm-bracketed-paste|
309326

310327
キーコード
311328
Note: 可能なかぎり <> 形式を使ってください。
@@ -398,18 +415,20 @@ Note: 可能なかぎり <> 形式を使ってください。
398415
t_KK <k8> キーパッド 8 *<k8>* *t_KK* *'t_KK'*
399416
t_KL <k9> キーパッド 9 *<k9>* *t_KL* *'t_KL'*
400417
<Mouse> マウスコードの先頭部分 *<Mouse>*
418+
t_PS bracketed paste の開始 |xterm-bracketed-paste| *t_PS* 't_PS'
419+
t_PE bracketed paste の終了 |xterm-bracketed-paste| *t_PE* 't_PE'
401420

402421
Note t_so と t_mrについて: termcap に "so" エントリがない場合は "mr" が使われ
403422
ます。逆に "mr" がない場合は "so" が使われます。"se" と "me" も同じ関係にあり
404-
ます。お使いの端末が反転と強調の両方をサポートしているならば、これらは別々のモー
405-
ドとして表示されます。これらの片方しかサポートしていない場合は、どちらも同じよ
406-
うに表示されます
423+
ます。お使いの端末が反転と強調の両方をサポートしているならば、これらは別々の
424+
モードとして表示されます。これらの片方しかサポートしていない場合は、どちらも同
425+
じように表示されます
407426

408427
*keypad-comma*
409428
キーパッドのキーは、何かにマップされていないときは通常のキーと等価です。ただ 1
410429
つだけ例外があります。小数点キーがあるべき場所にコンマキーがあるキーパッドの場
411-
合でも Vim では小数点として認識されます。これを修正するには次のマッピングを
412-
使ってください: >
430+
合でも Vim では小数点として認識されます。これを修正するには次のマッピングを使っ
431+
てください: >
413432
:noremap <kPoint> ,
414433
:noremap! <kPoint> ,
415434
< *xterm-codes*

en/term.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ an external command (e.g., "!!"), the terminal will be put into Normal mode
8989
for a moment. This means that you can stop the output to the screen by
9090
hitting a printing key. Output resumes when you hit <BS>.
9191

92+
*xterm-bracketed-paste*
93+
When the 't_BE' option is set then 't_BE' will be sent to the
94+
terminal when entering "raw" mode and 't_BD' when leaving "raw" mode. The
95+
terminal is then expected to put 't_PS' before pasted text and 't_PE' after
96+
pasted text. This way Vim can separate text that is pasted from characters
97+
that are typed. The pasted text is handled like when the middle mouse button
98+
is used.
99+
100+
Note that in some situations Vim will not recognize the bracketed paste and
101+
you will get the raw text. In other situations Vim will only get the first
102+
pasted character and drop the rest, e.g. when using the "r" command.
103+
92104
*cs7-problem*
93105
Note: If the terminal settings are changed after running Vim, you might have
94106
an illegal combination of settings. This has been reported on Solaris 2.5
@@ -306,6 +318,10 @@ Added by Vim (there are no standard codes for these):
306318
|xterm-true-color|
307319
t_8b set background color (R, G, B) *t_8b* *'t_8b'*
308320
|xterm-true-color|
321+
t_BE enable bracketed paste mode *t_BE* *'t_BE'*
322+
|xterm-bracketed-paste|
323+
t_BD disable bracketed paste mode *t_BD* *'t_BD'*
324+
|xterm-bracketed-paste|
309325

310326
KEY CODES
311327
Note: Use the <> form if possible
@@ -398,6 +414,8 @@ Note: Use the <> form if possible
398414
t_KK <k8> keypad 8 *<k8>* *t_KK* *'t_KK'*
399415
t_KL <k9> keypad 9 *<k9>* *t_KL* *'t_KL'*
400416
<Mouse> leader of mouse code *<Mouse>*
417+
t_PS start of brackted paste |xterm-bracketed-paste| *t_PS* 't_PS'
418+
t_PE end of bracketed paste |xterm-bracketed-paste| *t_PE* 't_PE'
401419

402420
Note about t_so and t_mr: When the termcap entry "so" is not present the
403421
entry for "mr" is used. And vice versa. The same is done for "se" and "me".

0 commit comments

Comments
 (0)