Skip to content

Commit 3976408

Browse files
authored
Merge pull request #1359 from vim-jp/hh-update-term
Update term.{txt,jax}
2 parents 2cefe32 + 8f7a0f3 commit 3976408

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

doc/term.jax

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*term.txt* For Vim バージョン 9.0. Last change: 2023 Jan 15
1+
*term.txt* For Vim バージョン 9.0. Last change: 2023 Oct 25
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -101,6 +101,11 @@ Vim は 't_RK' termcap エントリを使用して、端末が使用している
101101
できます。ペーストされたテキストはマウスの中ボタンを使ったときと同様に扱われ、
102102
文字通り挿入され、コマンドとしては扱われません。
103103

104+
note: bracketed paste は、ペーストによる厄介な副作用 (CTRL-C キーや <ESC> キー
105+
等) を防止しようとしていますが、端末によってこのモードの実装方法が若干異なる可
106+
能性があるため、セキュリティ対策が保証されているわけではありません。Vim に貼り
107+
付ける内容には引き続き注意する必要があります。
108+
104109
カーソルが最初の桁にある時は、ペーストされたテキストはその前に挿入されます。そ
105110
うでなければ、ペーストされたテキストはカーソルの位置の後に追加されます。これは
106111
最初の桁の後にペーストすることはできないことを意味します。残念ながら Vim には
@@ -119,6 +124,9 @@ Vim は 't_RK' termcap エントリを使用して、端末が使用している
119124
貼り付けられたテキストを囲むエスケープコードが認識できない場合に、bracketed
120125
paste が有効にならないようにするためです。
121126

127+
Note: 'esckeys' オプションが設定されていない場合 ('compatible' オプションが設
128+
定されている場合も同様)、bracketed paste モードは無効になります。
129+
122130
端末が bracketed paste をサポートしているにもかかわらずオプションが自動的に設
123131
定されない場合、以下のような設定を試すことができます: >
124132

en/term.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*term.txt* For Vim version 9.0. Last change: 2023 Jan 15
1+
*term.txt* For Vim version 9.0. Last change: 2023 Oct 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -104,6 +104,11 @@ pasted text. This way Vim can separate text that is pasted from characters
104104
that are typed. The pasted text is handled like when the middle mouse button
105105
is used, it is inserted literally and not interpreted as commands.
106106

107+
Please note: while bracketed paste is trying to prevent nasty side-effects
108+
from pasting (like the CTRL-C or <ESC> key), it's not a guaranteed security
109+
measure because different terminals may implement this mode slightly
110+
differently. You should still be careful with what you paste into Vim.
111+
107112
When the cursor is in the first column, the pasted text will be inserted
108113
before it. Otherwise the pasted text is appended after the cursor position.
109114
This means one cannot paste after the first column. Unfortunately Vim does
@@ -122,6 +127,9 @@ If |t_PS| or |t_PE| is not set, then |t_BE| will not be used. This is to make
122127
sure that bracketed paste is not enabled when the escape codes surrounding
123128
pasted text cannot be recognized.
124129

130+
Note: bracketed paste mode will be disabled, when the 'esckeys' option is not
131+
set (also when the 'compatible' option is set).
132+
125133
If your terminal supports bracketed paste, but the options are not set
126134
automatically, you can try using something like this: >
127135
@@ -744,8 +752,8 @@ For Windows Terminal you can use something like this: >
744752
let &t_SI = "\e[5 q" " blink bar
745753
let &t_SR = "\e[3 q" " blink underline
746754
let &t_EI = "\e[1 q" " blink block
747-
let &t_ti ..= "\e[1 q" " blink block
748-
let &t_te ..= "\e[0 q" " default (depends on terminal, normally blink block)
755+
let &t_ti ..= "\e[1 q" " blink block
756+
let &t_te ..= "\e[0 q" " default (depends on terminal, normally blink block)
749757
endif
750758
751759
{not available when compiled without the |+cursorshape| feature}

0 commit comments

Comments
 (0)